// Use this for initialization
 void Start()
 {
     hasBeenSelected = 0;
     canBeSelected   = true;
     cObject         = gameObject.GetComponent <Creature>();
     spawner         = GameObject.FindGameObjectWithTag("spawner").GetComponent <SpawnCreatures>();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     hasBeenSelected = 0;
     canBeSelected = true;
     cObject = gameObject.GetComponent<Creature>();
     spawner = GameObject.FindGameObjectWithTag("spawner").GetComponent<SpawnCreatures>();
 }