Pārlūkot izejas kodu

双人游戏规则调整

lvjincheng 4 gadi atpakaļ
vecāks
revīzija
94dea1345f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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])
             {