Ejemplo n.º 1
0
    public void Jump()
    {
        if (falling || onJump || jumping || takingDamage)
        {
            return;
        }

        onJump = true;
        animator.SetBool("Jumping", true);
        if (OnCharacterJump != null)
        {
            OnCharacterJump.Invoke();
        }
    }
Ejemplo n.º 2
0
 public static void InvokeCharacterJump(Entity entity)
 {
     OnCharacterJump?.Invoke(entity);
 }