浏览代码

双人记录

lvjincheng 3 年之前
父节点
当前提交
a3682db554
共有 1 个文件被更改,包括 13 次插入13 次删除
  1. 13 13
      Assets/BowArrow/Scripts/Game/GameAssistUI.cs

+ 13 - 13
Assets/BowArrow/Scripts/Game/GameAssistUI.cs

@@ -169,7 +169,7 @@ public class GameAssistUI : MonoBehaviour
     }
 
     #region 本地双人PK,再来时保存记录
-        private static bool[] playerRecords = null; 
+        // private static bool[] playerRecords = null; 
         private bool isLocalPK() {
             int[] gameTypes = {2, 6, 7, 8};
             if (System.Array.IndexOf(gameTypes, GameMgr.gameType) > -1) {
@@ -178,20 +178,20 @@ public class GameAssistUI : MonoBehaviour
             return false;
         }
         public void recordPlayerRecordsWhenGameTryAgain() {
-            if (!isLocalPK()) return;
-            playerRecords = new bool[] {
-                playerScaleAimRecords[0], playerScaleAimRecords[1],  
-                playerScaleShootRecords[0], playerScaleShootRecords[1]  
-            };
+            // if (!isLocalPK()) return;
+            // playerRecords = new bool[] {
+            //     playerScaleAimRecords[0], playerScaleAimRecords[1],  
+            //     playerScaleShootRecords[0], playerScaleShootRecords[1]  
+            // };
         }
         private void applyPlayerRecordsWhenGameTryAgain() {
-            if (playerRecords != null) {
-                playerScaleAimRecords[0] = playerRecords[0];
-                playerScaleAimRecords[1] = playerRecords[1];
-                playerScaleShootRecords[0] = playerRecords[2];
-                playerScaleShootRecords[1] = playerRecords[3];
-                playerRecords = null;
-            }
+            // if (playerRecords != null) {
+            //     playerScaleAimRecords[0] = playerRecords[0];
+            //     playerScaleAimRecords[1] = playerRecords[1];
+            //     playerScaleShootRecords[0] = playerRecords[2];
+            //     playerScaleShootRecords[1] = playerRecords[3];
+            //     playerRecords = null;
+            // }
         }
     #endregion