Almost Final Version
This commit is contained in:
@ -21,7 +21,7 @@ public class Player : MonoBehaviour, ICharacter
|
||||
}
|
||||
|
||||
public event Action<bool> OnDeathEvent;
|
||||
public void GetDamage(float damage)
|
||||
public void GetDamage(int damage)
|
||||
{
|
||||
PlayerCharacter.LastTimeHit = TimeManager.Instance.CurrentTime;
|
||||
Condition.GiveHealth(-Mathf.RoundToInt(damage * (1 - Condition.ArmourPoints * 0.5f)));
|
||||
|
Reference in New Issue
Block a user