//===================================================================== #region Constructors //===================================================================== public AttackState(FSMNavMeshController fsmNavMeshController, AttackStateSO stateData) : base(fsmNavMeshController) { this.stateData = stateData; animatorBoolName = "attack"; }
//===================================================================== #region Constructors //===================================================================== public PlayerDetectedState(FSMNavMeshController fsmNavMeshController, PlayerDetectedStateSO stateData) : base(fsmNavMeshController) { this.stateData = stateData; animatorBoolName = "playerDetected"; }
private void InitVars() { controller = GetComponent <FSMNavMeshController>(); }
//===================================================================== #region Constructors //===================================================================== public ChaseState(FSMNavMeshController fsmNavMeshController, ChaseStateSO stateData) : base(fsmNavMeshController) { this.stateData = stateData; animatorBoolName = "chase"; }
//===================================================================== #region Constructors //===================================================================== /// <summary> /// Constructs a State object. /// </summary> /// <param name="fsmNavMeshController">The controller of the state.</param> public State(FSMNavMeshController fsmNavMeshController) { this.fsmNavMeshController = fsmNavMeshController; this.finiteStateMachine = fsmNavMeshController.FiniteStateMachine; }
//===================================================================== #region Constructors //===================================================================== public IdleState(FSMNavMeshController fsmNavMeshController, IdleStateSO stateData) : base(fsmNavMeshController) { this.stateData = stateData; animatorBoolName = "idle"; }
//===================================================================== #region Constructors //===================================================================== public PatrolState(FSMNavMeshController fsmNavMeshController, PatrolStateSO stateData) : base(fsmNavMeshController) { this.stateData = stateData; }