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