コード例 #1
0
 //=====================================================================
 #region Constructors
 //=====================================================================
 public AttackState(FSMNavMeshController fsmNavMeshController, AttackStateSO stateData) : base(fsmNavMeshController)
 {
     this.stateData   = stateData;
     animatorBoolName = "attack";
 }
コード例 #2
0
 //=====================================================================
 #region Constructors
 //=====================================================================
 public PlayerDetectedState(FSMNavMeshController fsmNavMeshController, PlayerDetectedStateSO stateData) : base(fsmNavMeshController)
 {
     this.stateData   = stateData;
     animatorBoolName = "playerDetected";
 }
コード例 #3
0
 private void InitVars()
 {
     controller = GetComponent <FSMNavMeshController>();
 }
コード例 #4
0
 //=====================================================================
 #region Constructors
 //=====================================================================
 public ChaseState(FSMNavMeshController fsmNavMeshController, ChaseStateSO stateData) : base(fsmNavMeshController)
 {
     this.stateData   = stateData;
     animatorBoolName = "chase";
 }
コード例 #5
0
ファイル: State.cs プロジェクト: sirpaulmcd/Onion-Trail-Open
 //=====================================================================
 #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;
 }
コード例 #6
0
 //=====================================================================
 #region Constructors
 //=====================================================================
 public IdleState(FSMNavMeshController fsmNavMeshController, IdleStateSO stateData) : base(fsmNavMeshController)
 {
     this.stateData   = stateData;
     animatorBoolName = "idle";
 }
コード例 #7
0
 //=====================================================================
 #region Constructors
 //=====================================================================
 public PatrolState(FSMNavMeshController fsmNavMeshController, PatrolStateSO stateData) : base(fsmNavMeshController)
 {
     this.stateData = stateData;
 }