private void OnTriggerExit(Collider other)
    {
        if (other.gameObject.name == "Main")
        {
            GameObject hextileObject = other.gameObject.transform.parent.gameObject;

            Hextile tileScript = hextileObject.GetComponent <Hextile>();

            if (!tileScript.isCity && !tileScript.blocked)
            {
                cityPlacementScript.ResetColors();
                cityPlacementScript.ClearCity();
            }
        }
    }
Ejemplo n.º 2
0
 public void SelectSize()
 {
     targettingScript.ClearCity();
     targettingScript.EnableCityPlacementPrefab(citySize);
     targettingScript.intendedSize = actualSize;
 }