aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts/PlayerManager.cs
blob: 1acd8e4bb55be42447e65ec301e5227a58c184b6 (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
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;
    }
}