Beispiel #1
0
 public void Update(GameObject unit)
 {
     currentStep.Update(unit.GetComponent <AttackComponent>());  //更新
     if (currentStep.IsEnd())                                    //終了の場合
     {
         currentStep = currentStep.NextStep();                   //次のステップ
     }
 }
Beispiel #2
0
 public void StartProcess(EAction lastAction)
 {
     currentStep = AttackStepFactory.CreateStep(EAttackStep.Find); //ターゲットを探す
 }