aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts/PlayerManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/PlayerManager.cs')
-rw-r--r--Assets/Scripts/PlayerManager.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/Assets/Scripts/PlayerManager.cs b/Assets/Scripts/PlayerManager.cs
index 46a2894..1acd8e4 100644
--- a/Assets/Scripts/PlayerManager.cs
+++ b/Assets/Scripts/PlayerManager.cs
@@ -1,8 +1,23 @@
+using System;
using System.Collections;
using System.Collections.Generic;
+using DS;
using UnityEngine;
public class PlayerManager : MonoBehaviour
{
- public Animator animator;
+ private InputHandler _inputHandler;
+ private Animator _animator;
+
+ private void Start()
+ {
+ _inputHandler = GetComponent<InputHandler>();
+ _animator = GetComponentInChildren<Animator>();
+ }
+
+ private void Update()
+ {
+ _inputHandler.isInteracting = _animator.GetBool("isInteracting");
+ _inputHandler.rollFlag = false;
+ }
}