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