Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     if (!townHallManager)
     {
         townHallManager = FindObjectOfType <TownHallManager>();
     }
     if (!townHouseManager)
     {
         townHouseManager = FindObjectOfType <TownHouseManager>();
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     if (!manager)
     {
         manager = FindObjectOfType <TownHallManager>();
     }
     if (!resources)
     {
         resources = GetComponentInChildren <TownHallResource>();
     }
     if (!hitCollider)
     {
         hitCollider = GetComponent <BoxCollider>();
     }
 }