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

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

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