Exemple #1
0
 public void StartBattle()
 {
     BattleOver = false;
     pause      = false;
     enemies.RemoveAll(enemy => enemy == null);
     foreach (Enemy enemy in enemies)
     {
         enemy.SetPlayerPosition(player);
         enemy.ShowBattleUI(true);
         if (enemy.name.Contains("Evil Wizard"))
         {
             enemy.GetComponent <Animator>().SetTrigger("start battle");
         }
     }
     cam.ChangeToThirdPerson();
     player.ResetFighterValues();
     player.ShowBattleUI(true);
     player.DrawWeapon();
     description.text = "";
     attackOptionsPanel.Flush();
     SomeoneGotHit       = false;
     numberOfDeadEnemies = 0;
     mainMenuButton.SetActive(false);
 }