Procházet zdrojové kódy

双人游戏规则调整

lvjincheng před 4 roky
rodič
revize
94dea1345f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Assets/BowArrow/Scripts/Manager/GameMgr.cs

+ 2 - 2
Assets/BowArrow/Scripts/Manager/GameMgr.cs

@@ -266,7 +266,7 @@ public class PKGameMode : GameMode {
     float[] targetDistancesOnRound = {10, 20, 30, 50, 70, 70};
     int maxRound = 5;
     int shootCount = 0;
-    int maxShootCount = 1;
+    int maxShootCount = 3;
     public float singleShootReadyTime = 20;
     public float singleShootReadyMaxTime = 20;
     bool singleShootTimeRunning = false;
@@ -299,7 +299,7 @@ public class PKGameMode : GameMode {
     int[] playerIndexSequenceRecord = {0, 1};
     void InitPlayerIndexSequence()
     {
-        if (round >= 3)
+        if (round >= 2)
         {
             if (totalScores[0] < totalScores[1])
             {