public ActionCommand(float startTime, float endTime, BattleAction action, FieldObject owner) { this.StartTime = startTime; this.EndTime = endTime; ActionBehaviour = BattleActionBehaviourFactory.Create(action, owner); }
void Awake() { Behavior = new PlayerBehavior(this); Controller = new PlayerController(this); AttackBattleActionBehaviour = BattleActionBehaviourFactory.Create(AttackBattleAction, this); InteractActionBehaviour = BattleActionBehaviourFactory.Create(InteractBattleAction, this); }