public void HurtPlayer() { if (hasHurtPlayer) { return; } if (!canHurtPlayer) { return; } hasHurtPlayer = true; userInterfaceManager.AddLife(-1); DestroySelf(); }