void Awake() { nextFire = 0f; fireInterval = .1f; radarSystem = GetComponentInChildren <RadarSystem>(); missilePool = GetComponentInChildren <MissilePool>(); }
private void Awake() { Instance = this; GrowMissilePool(); GrowDestroyPool(); GrowCollisionPool(); }
protected virtual void Awake() { GameObject poolManager = GameObject.FindGameObjectWithTag("Pool Manager"); boltPool = poolManager.GetComponent <BoltPool>(); missilePool = poolManager.GetComponent <MissilePool>(); shipDetector = GetComponentInChildren <ShipDetector>(); ship = GetComponent <ShipStats>(); ship.onPartsChange.AddListener(UpdateFireRate); }
protected virtual void Start() { missilePool = GameObject.FindGameObjectWithTag("PoolContainer").GetComponent <MissilePool>(); }
// Use this for initialization void Start() { accumulatedTime = 0.0f; missileManager = GameObject.Find("EnemyMissileManager"); missilePool = missileManager.GetComponent <MissilePool>(); }
private void Awake() { instance = this; }