コード例 #1
0
 public void btn_LoadGame(ScriptableGameData gameData)
 {
     LogsManager.ins.ClearLogs();
     LogsManager.ins.AddLog("Gra została załadowana.");
     Scripts.GameData gD = new Scripts.GameData(gameData);
     gameAnalysis = new GameAnalysis(gD);
 }
コード例 #2
0
        public GameData(ScriptableGameData gameData)
        {
            this.playerA       = gameData.rowPlayerName;
            this.playerB       = gameData.columnPlayerName;
            this.matrix        = gameData.getMatrix;
            this.rowStrategies = SetUpStrategies(matrix.GetLength(0));
            this.colStrategies = SetUpStrategies(matrix.GetLength(1));

            instance = this;
        }