Ejemplo n.º 1
0
    // Protected class methods
    // Private class methods

    // Overidded start method
    private void Start()
    {
        // gets component references
        _enemyInput = GetComponent <EnemyInputManager>();


        // sets invulnerability to false
        //_invulnerable = false;

        // Starts coroutine for pacing the goblin
        StartCoroutine("paceGoblin");
    }
Ejemplo n.º 2
0
    // Private class methods
    private void Start()
    {
        // gets component references
        _enemyInput        = GetComponent <EnemyInputManager>();
        _audio             = GetComponent <AudioSource>();
        _audio.playOnAwake = false;

        // Creates pool for the enemy projectiles
        enemyPoolManager.instance.CreatePool(enemyProj, 8);
        //globalPoolManager.instance.CreateEnemyPool(enemyProj, 5);

        // Starts coroutine for pacing the goblin
        StartCoroutine("ShooterControl");

        // Defaults lumi to be found being false
        _LumiFound = false;
    }