public void ExecuteUpdate(BattleContext context)
 {
     // ステート遷移
     if (isDecision)
     {
         if (context.isOffense)
         {
             context.ChangeState(context.stateActionSelect);
         }
         else
         {
             context.ChangeState(context.stateIdle);
         }
     }
 }
Пример #2
0
 public void ExecuteExit(BattleContext context)
 {
     Debug.Log("[Exit] Battle State : Init");
 }
Пример #3
0
 public void ExecuteUpdate(BattleContext context)
 {
 }
 // 他ステートへの遷移直前 の処理
 public void ExecuteExit(BattleContext context)
 {
     Debug.Log("[Exit] Battle State : Action Select");
 }
 /// <summary>
 /// 攻守決定処理
 /// </summary>
 void DecideOffense(BattleContext context)
 {
     isDecision = true;
 }
 public void ExecuteExit(BattleContext context)
 {
     Debug.Log("[Entry] Battle State : Offensive Decision");
 }
        public void ExecuteEntry(BattleContext context)
        {
            Debug.Log("[Entry] Battle State : Offensive Decision");

            isDecision = false;
        }
Пример #8
0
 public void ExecuteEntry(BattleContext context)
 {
     Debug.Log("[Entry] Battle State : Idle");
 }