public static bool canFire = false;     // used for enemy fire flag

    void Start()
    {
        thebulletPooler    = FindObjectOfType <EnemyBulletPooler> ();
        theEnemy_01Spawner = FindObjectOfType <Enemy_01_Spawner> ();
        //theEnemySpawner = FindObjectOfType <MultipleEnemySpawner> ();

        // stack events here
        theEventDelegate += initiate_Event_B;
    }
Пример #2
0
 void Start()
 {
     m_target            = GameObject.FindGameObjectWithTag("Player").transform;
     m_enemyBulletPooler = GameObject.FindObjectOfType <EnemyBulletPooler>();
     m_shotCoolDown      = m_shotsPerSecond;
 }
Пример #3
0
 void Awake()
 {
     current = this;
 }
Пример #4
0
 public void Initialize(EnemyBulletPooler pooler)
 {
     m_pooler = pooler;
 }
Пример #5
0
 void Awake()
 {
     _Instance = this;
 }