// Use this for initialization void Start() { if (type != "hall") { script = townHall.GetComponent <TownHallScript>(); } }
// Use this for initialization void Start() { selected = false; soldierScript = GetComponent <SoldierScript>(); townScript = GetComponent <MapObject>().townHall.GetComponent <TownHallScript>(); }
// Use this for initialization void Start() { selected = false; soldierScript = GetComponent<SoldierScript>(); townScript = GetComponent<MapObject>().townHall.GetComponent<TownHallScript>(); }
// Use this for initialization void Start() { if (type != "hall") { script = townHall.GetComponent<TownHallScript>(); } }