Exemplo n.º 1
0
    public static void SetHexagonGoalColor(int hexagonID, ColorID colorID)
    {
        ActorHexagon target = GetHexagonActor(hexagonID);

        if (target != null)
        {
            target.SetGoalColor(colorID);
        }
    }
Exemplo n.º 2
0
 public static void ResetGrid()
 {
     Debug.Log("Resetting grid...");
     GameObject[] hexagons = GameObject.FindGameObjectsWithTag(HexagonTag);
     foreach (GameObject h in hexagons)
     {
         ActorHexagon ah = h.GetComponentInChildren <ActorHexagon>();
         if (ah != null)
         {
             ah.SetColor(0, ColorID.white);
             ah.SetGoalColor(ColorID.white);
             ah.SetHoverColor(ColorID.white);
         }
     }
 }
Exemplo n.º 3
0
 public static void EnterEditMode()
 {
     State.gameActivity = GameActivity.edit;
     GameObject[] hexagons = GameObject.FindGameObjectsWithTag(HexagonTag);
     foreach (GameObject h in hexagons)
     {
         ActorHexagon ah = h.GetComponentInChildren <ActorHexagon>();
         if (ah != null)
         {
             ColorID currentGoalColor = ah.goalColor;
             ah.SetGoalColor(ColorID.white);
             ah.SetColor(0, currentGoalColor);
         }
     }
 }