void Start()
        {
            pooler = GetComponent <Pooling_Engine>();
            GameObject explosion = Resources.Load <GameObject>("Prefabs/ExplosionPrefab");

            explosionsTypeA = pooler.PoolObjects(explosionsTypeA, explosion, this.gameObject, numOfPooledExplosionsTypeA, "ExplosionTypeA", "Explosions");
            gameObject.SetActive(false);
        }
예제 #2
0
        void Start()
        {
            pooler = GetComponent <Pooling_Engine>();

            GameObject missile = Resources.Load <GameObject>("Prefabs/EnemyMissilePrefab");

            missiles = pooler.PoolObjects(missiles, missile, this.gameObject, numOfPooledMissiles, missileName, "Missiles");

            gameObject.SetActive(false);
        }
예제 #3
0
        void Start()
        {
            playerReady = false;
            pooler      = GetComponent <Pooling_Engine>();

            GameObject missile       = Resources.Load <GameObject>("Prefabs/PlayerMissilePrefab");
            GameObject launchStation = Resources.Load <GameObject>("Prefabs/LaunchStationPrefab");

            missiles = pooler.PoolObjects(missiles, missile, this.gameObject, numOfPooledMissiles, missileName, "Missiles");

            LaunchStationPooler(pooler, launchStation);

            playerReady = true;

            return;
        }