/* --------------------------------------------------------------------- */ #region Construction #endregion /* --------------------------------------------------------------------- */ #region Unity Methods // Use this for initialization void Start() { this._bulletPool = new List <EnemyBullet>(); for (int i = 0; i < this._bulletLimit; i++) { GameObject enemyBullet = Instantiate(this._bulletPrefab); EnemyBullet enemyBulletScript = enemyBullet.GetComponent <EnemyBullet>(); enemyBulletScript.Initialise(this); this._bulletPool.Add(enemyBulletScript); } }