You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
31 lines
751 B
C#
31 lines
751 B
C#
using UnityEngine;
|
|
|
|
public class BaseController : MonoBehaviour
|
|
{
|
|
protected bool _trainingController;
|
|
protected BrainController _brainController;
|
|
protected Player _player;
|
|
protected PlayerMovement _playerMovement;
|
|
protected InputBuffer _inputBuffer;
|
|
|
|
public bool IsControllerEnabled { get; set; } = true;
|
|
|
|
void Awake()
|
|
{
|
|
_player = GetComponent<Player>();
|
|
_playerMovement = GetComponent<PlayerMovement>();
|
|
_brainController = GetComponent<BrainController>();
|
|
_inputBuffer = GetComponent<InputBuffer>();
|
|
}
|
|
|
|
public virtual void ActivateInput()
|
|
{
|
|
IsControllerEnabled = true;
|
|
}
|
|
|
|
public virtual void DeactivateInput()
|
|
{
|
|
IsControllerEnabled = false;
|
|
}
|
|
}
|