コード例 #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();
 }
コード例 #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];
    }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: ErickBraian/PA
 void UnSummonAlly()
 {
     enemyTarget = player.transform;
     allyManager.UnSummonAlly();
 }