private void Awake() { state = GetComponent <Animator>(); stateMachine = new StateMachine_Script(); idling = new IdleState_Script(this, stateMachine); wandering = new MovementState_Script(this, stateMachine); stateMachine.Initialize(idling); }
public MovementState_Script(StatsController_Script npcInfo, StateMachine_Script stateMachine) : base(npcInfo, stateMachine) { }
protected State_Script(StatsController_Script _npcInfo, StateMachine_Script _stateMachine) { this.npcInfo = _npcInfo; this.stateMachine = _stateMachine; }