private void Start()
    {
        Random.seed = 52453786;

        playerScript     = this.gameObject.GetComponent <PlayerStatsCurrentGame>();
        objectPoolScript = (ObjectPool_Script)objectPool.GetComponent(typeof(ObjectPool_Script));
        spawnPositions   = new Transform[m_SpawnPosition.transform.childCount];
        for (int i = 0; i < spawnPositions.Length; i++)
        {
            spawnPositions[i] = m_SpawnPosition.transform.GetChild(i);
        }

        currentWave        = 1;
        waveActive         = true;
        cooldownTimerReset = cooldownTimer;
    }
Beispiel #2
0
 void Start()
 {
     objectPoolScript = (ObjectPool_Script)objectPool.GetComponent(typeof(ObjectPool_Script));
 }