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