public void OnIlluminateCurrentHex(HexCoord hexCoord)
 {
     HexMap.transform.Find(hexCoord.ToString()).GetComponent<Renderer>().material.color += _currentHexColor;
 }
 public void OnSkipTargetHexIllumination(HexCoord hexCoord)
 {
     HexMap.transform.Find(hexCoord.ToString()).GetComponent<Renderer>().material.color -= _targetHexColor;
 }
Пример #3
0
 public static void SetHexInfo(HexCoord coord, Transform hex)
 {
     hex.GetComponent<HexData>().HexPosition = coord;
     hex.name = coord.ToString();
 }