示例#1
0
 public void ExecuteStatus()
 {
     if (currentActiveStatus.OnExecuteEvent == GameVariables.EffectType.None)
     {
         TurnPlayerManager.instance.ExecuteEffectToCurrentPlayer(currentActiveStatus.GetEffectStatus());
         MerapiUI.instance.UpdateLog((TurnPlayerManager.instance.GetCurrentStatePlayer().GetKarakter().GetName() + " got "), currentActiveStatus.GenerateStatusEffect());
     }
     else if (currentActiveStatus.OnExecuteEvent == GameVariables.EffectType.PlayerSelect)
     {
         TurnPlayerManager.instance.ExecuteEffectOnSpecificPlayer(targetPlayer, currentActiveStatus.GetPlayerAffect());
         MerapiUI.instance.UpdateLog((targetPlayer.GetKarakter().GetName() + " got effect from "), currentActiveStatus.GetPlayerAffect().nameCard + " by " + TurnPlayerManager.instance.GetCurrentStatePlayer().GetKarakter().GetName());
     }
     else
     {
         TurnPlayerManager.instance.ExecuteEffectToCurrentPlayer(currentActiveStatus.GetDiceDecide(dice));
         MerapiUI.instance.UpdateLog((TurnPlayerManager.instance.GetCurrentStatePlayer().GetKarakter().GetName() + " got "), currentActiveStatus.GenerateDiceEffect(dice));
     }
 }
 public bool CheckPlayerDead(MerapiPlayer characterPlayer)
 {
     return(characterPlayer.GetKarakter().GetHP() == 0 || characterPlayer.GetKarakter().GetSanity() == 0 || characterPlayer.GetKarakter().GetFood() == 0);
 }