private void Start() { _CreepFactory = new CreepFactory(); _Spawnpoint = GetComponent <WaypointManager>().GetSpawnPoint(); if (WavesContainer.Waves.Count > 0) { StartNextWave(); } }
public override void OnStartClient() { this.creepFactory = GameObject.FindGameObjectWithTag("CreepFactory").GetComponent <CreepFactory>(); }
public void spawnCreep() { GameObject creep = CreepFactory.createCreep(currentCreepType); creep.transform.parent = creepContainer.transform; }