protected override void OnEnter(ref Character.ChangedStateEventArgs e) { EditorDebug.Log("JUMPING ENTER"); float initPosY = character.transform.position.y; maxHeight = initPosY + height; rigidbody2D.AddForce(jumpForce, ForceMode2D.Impulse); }
protected override void OnEnter(ref Character.ChangedStateEventArgs e) { EditorDebug.Log("FALLING ENTER"); }