移除ECM2

This commit is contained in:
2025-05-11 21:42:51 +08:00
parent aadd564c38
commit a7bf033ca9
726 changed files with 0 additions and 138648 deletions

View File

@@ -1,36 +0,0 @@
using UnityEngine.InputSystem;
namespace ECM2.Examples.Jump
{
/// <summary>
/// Extends default Character Input to handle JumpAbility Input.
/// </summary>
public class JumpInput : CharacterInput
{
// The jump ability
private JumpAbility _jumpAbility;
/// <summary>
/// Extend OnJump handler to manage JumpAbility input.
/// </summary>
public override void OnJump(InputAction.CallbackContext context)
{
if (context.started)
_jumpAbility.Jump();
else if (context.canceled)
_jumpAbility.StopJumping();
}
protected override void Awake()
{
base.Awake();
// Cache JumpAbility
_jumpAbility = GetComponent<JumpAbility>();
}
}
}