matriga

Untitled

Dec 12th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | Gaming | 0 0
  1. using NUnit.Framework.Constraints;
  2. using UnityEngine;
  3.  
  4. public class playerAnimationEvents : MonoBehaviour
  5. {
  6.     private Player player;
  7.  
  8.     private void Awake()
  9.     {
  10.         player = GetComponentInParent<Player>();
  11.     }
  12.  
  13.     public void DisableMovementAndJump() => player.EnableMovementAndJump(false);
  14.    
  15.     public void EnableMovementAndJump() => player.EnableMovementAndJump(true);
  16.    
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment