public void Jump() { if (falling || onJump || jumping || takingDamage) { return; } onJump = true; animator.SetBool("Jumping", true); if (OnCharacterJump != null) { OnCharacterJump.Invoke(); } }
public static void InvokeCharacterJump(Entity entity) { OnCharacterJump?.Invoke(entity); }