コード例 #1
0
ファイル: GameHandler.cs プロジェクト: mukyy/HexagonEmircan
 // Gets called after every turn to decrement every bomb on the grid
 public void DecrementAllBombTimers()
 {
     HexagonScript[] AllHexagons;
     AllHexagons = FindObjectsOfType <HexagonScript>();
     foreach (var Hexagon in AllHexagons)
     {
         if (Hexagon.Type == 1)
         {
             Hexagon.DecrementBombTurnLeft();
         }
     }
 }