Esempio n. 1
0
    // Use this for initialization
    void Awake()
    {
        spawnPlaces = GameObject.FindGameObjectsWithTag("SpawnSheep");

        safeZone     = GameObject.FindGameObjectWithTag("Safezone");
        safeZoneInfo = safeZone.GetComponent <SafezoneController>();
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     spawnPlaces     = GameObject.FindGameObjectsWithTag("SpawnEnemy");
     safeZoneInfo    = GameObject.FindGameObjectWithTag("Safezone").GetComponent <SafezoneController>();
     startingEnemies = numberOfEnemies;
 }