public void Revive() { IsAlive = true; HealHP(MaxHealth); BattleCanvas.UpdatePlayerHealth(); BattleCanvas.ShowRole(MyForce, true); }
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); }