// Use this for initialization void Start() { lifeOfEnemy = 0; walkingDronePool = GetComponent <EnemyPoolScript>(); numberOfEnemysCreated = 0; isEnable2Spawn = false; timeBtwSpawn = 1f; time = 0; }
// Use this for initialization void Start() { current = this; pooledObjects = new List <GameObject>(); for (int i = 0; i < pooledAmount; i++) { GameObject obj = (GameObject)Instantiate(pooledObject, new Vector3(0, 0, 0), Quaternion.identity); obj.SetActive(false); pooledObjects.Add(obj); } }
void Awake() { current_EnemyPool = this; }