//This method removes the ally from the scene
 void UnSummonAlly()
 {
     //Enemies go back to chasing the player
     EnemyTarget = Player.transform;
     //Tell the ally manager to remove the ally
     allyManager.UnSummonAlly();
 }
    //This method removes the ally from the scene
    void UnSummonAlly()
    {
        //Enemies go back to chasing the player
        EnemyTarget = Player.transform;
        //Tell the ally manager to remove the ally
        allyManager.UnSummonAlly();

        allyManagerIndex++;
        if (allyManagerIndex == allyManagers.Length)
        {
            allyManagerIndex = 0;
        }
        allyManager = allyManagers[allyManagerIndex];
    }
Exemple #3
0
 void UnSummonAlly()
 {
     enemyTarget = player.transform;
     allyManager.UnSummonAlly();
 }