blob: e80c0a21be870f8e3bcfc50c5893bc491facdd54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
using System;
using System.Collections;
using System.Collections.Generic;
using DS;
using UnityEngine;
public class PlayerManager : MonoBehaviour
{
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;
_inputHandler.sprintFlag = false;
}
}
|