Exemplo n.º 1
0
 /// <summary>
 /// Führt alle nötigen Schritte für die derzeitige Runde aus.
 /// </summary>
 private void ExecuteTurn()
 {
     Debug.Log("----- Turn " + currentTurn + "-----");
     Object[] objects = FindObjectsOfType <GameObject>();
     foreach (GameObject go in objects)
     {
         go.SendMessage("OnNewTurn", SendMessageOptions.DontRequireReceiver);
     }
     worldObjectManager.ConnectAllAvailableWorldObjects();
     robotManager.PerformRobotActionsForTurn();
     worldObjectManager.PerformWorldObjectActionsForTurn();
     robotManager.CheckForRobotTerrainCompatability();
     worldObjectManager.CheckForWorldObjectTerrainCompatability();
     if (CheckForVictory())
     {
         Debug.Log("Gewonnen!");
         Pause();
         victoryPanelManager.OnVictory();
     }
 }