示例#1
0
        private void Start()
        {
            _CreepFactory = new CreepFactory();
            _Spawnpoint   = GetComponent <WaypointManager>().GetSpawnPoint();

            if (WavesContainer.Waves.Count > 0)
            {
                StartNextWave();
            }
        }
示例#2
0
 public override void OnStartClient()
 {
     this.creepFactory = GameObject.FindGameObjectWithTag("CreepFactory").GetComponent <CreepFactory>();
 }
示例#3
0
    public void spawnCreep()
    {
        GameObject creep = CreepFactory.createCreep(currentCreepType);

        creep.transform.parent = creepContainer.transform;
    }