Advertisement
shadowx320

PlayerManager

Mar 19th, 2021 (edited)
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. namespace SG
  6. {
  7.     public class PlayerManager : MonoBehaviour
  8.     {
  9.  
  10.         InputHandler inputHandler;
  11.         Animator anim;
  12.  
  13.         void Start()
  14.         {
  15.             inputHandler = GetComponent<InputHandler>();
  16.             anim = GetComponentInChildren<Animator>();
  17.         }
  18.  
  19.         void Update()
  20.         {
  21.             inputHandler.isInteracting = anim.GetBool("isInteracting");
  22.             inputHandler.rollFlag = false;
  23.         }
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement