public static void SetHexagonHoverColor(int hexagonID, ColorID colorID) { ActorHexagon target = GetHexagonActor(hexagonID); if (target != null) { target.SetHoverColor(colorID); } }
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); } } }