public void Kill() { if (!infiniteLives) { --_lives; } _object.OnKill(_lives); if (onKill != null) { onKill(); } if (HasLives()) { ResetHealth(); } }
public void Kill() { if (!infiniteLives) { --_lives; } _object.OnKill(_lives); if (onKill != null) { onKill(); } if (HasLives()) { ResetHealth(); } }