Example #1
0
 public void Revive()
 {
     IsAlive = true;
     HealHP(MaxHealth);
     BattleCanvas.UpdatePlayerHealth();
     BattleCanvas.ShowRole(MyForce, true);
 }
Example #2
0
 protected virtual bool DeathCheck()
 {
     if (Health <= 0)
     {
         IsAlive = false;
         EffectEmitter.EmitParticle("deathEffect", transform.position, Vector3.zero, null);
         BattleCanvas.ShowRole(MyForce, false);
         MyAudio.PlaySound(DieAduio);
         BattleManager.DestroyAllAmmo();
     }
     else
     {
         IsAlive = true;
     }
     return(!IsAlive);
 }