//-----------------------------------------
        // StateMachine 管理
        //-----------------------------------------
        #region ===== STATE_MACHINE_CONTROLL =====

        /// <summary>
        /// StateMachine 初期化メソッド
        /// </summary>
        protected override void InitMachine()
        {
            base.InitMachine();
            SMachine.Initialize(this);
            SMachine.Start(INIT_STATE);
            PushNextState(INIT_STATE);
        }
Exemple #2
0
 public void Update()
 {
     if (_talkTimer <= 0)
     {
         Talking = "";
     }
     else
     {
         _talkTimer -= Tester.TimeStep;
     }
     AiMove(Tester.TimeStep);
     SMachine.UpdatePerFrame(Tester.TimeStep, this);
 }