public void StartApplyJump() { lastGroundedY = transform.position.y; features.isJumping = true; controle.Move(Vector3.up * features.initialImpulse); FayvitMoveEventAgregator.Publish(new FayvitMoveEvent(FayvitMoveEventKey.animateStartJump, controle.gameObject)); }
public void NotJumping() { if (features.isJumping) { FayvitMoveEventAgregator.Publish(new FayvitMoveEvent(FayvitMoveEventKey.animateDownJump, controle.gameObject)); } features.isJumping = false; features.wasJumping = false; verticalMove = Vector3.zero; }