Ejemplo n.º 1
0
        public void ChangeScene()
        {
            var Win = ActiveAllies.Count > 0;

            if (Win)
            {
                CycleController.SendTrigger(0);
                CombatInfo.WinOutcomeOption();
            }
            else
            {
                CycleController.SendGameOver();
                CombatInfo.LoseOutcomeOption();
            }
        }
Ejemplo n.º 2
0
 public void PlayerLoses(CycleController losingPlayer)
 {
     print("Calling:");
     PlayAgain.gameObject.SetActive(true);
     player1.Freeze();
     player2.Freeze();
     if (losingPlayer == player1)
     {
         playerWinsText.text  = player2.nameString + " Wins!";
         playerWinsText.color = player2.playerMaterial.color;
     }
     else
     {
         playerWinsText.text  = player1.nameString + " Wins!";
         playerWinsText.color = player1.playerMaterial.color;
     }
 }