Esempio n. 1
0
        public ActionCommand(float startTime, float endTime, BattleAction action, FieldObject owner)
        {
            this.StartTime = startTime;
            this.EndTime   = endTime;

            ActionBehaviour = BattleActionBehaviourFactory.Create(action, owner);
        }
Esempio n. 2
0
    void Awake()
    {
        Behavior   = new PlayerBehavior(this);
        Controller = new PlayerController(this);

        AttackBattleActionBehaviour = BattleActionBehaviourFactory.Create(AttackBattleAction, this);
        InteractActionBehaviour     = BattleActionBehaviourFactory.Create(InteractBattleAction, this);
    }