Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using NUnit.Framework.Constraints;
- using UnityEngine;
- public class playerAnimationEvents : MonoBehaviour
- {
- private Player player;
- private void Awake()
- {
- player = GetComponentInParent<Player>();
- }
- public void DisableMovementAndJump() => player.EnableMovementAndJump(false);
- public void EnableMovementAndJump() => player.EnableMovementAndJump(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment