Ejemplo n.º 1
0
 //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();
 }
Ejemplo n.º 2
0
    //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];
    }
Ejemplo n.º 3
0
 void UnSummonAlly()
 {
     enemyTarget = player.transform;
     allyManager.UnSummonAlly();
 }