public void AttackPlayer(float value) { GameProxy.EditHpPlayer(value); HitpointsMax = Mathf.Max(0f, HitpointsMax - value); if (HitpointsMax <= 0) { GameProxy.EndGame(); } }
private void OnDestroy() { gameProxy.EndGame(); }