예제 #1
0
        public Interaction(VBattle battle)
        {
            this.battle = battle;
            this.battle.input.pointerHandler = this.PointerHandler;

            this._states       = new AbsInteractionState[2];
            this._states[0]    = new CommonInteraction(this);
            this._states[1]    = new SkillInteraction(this);
            this._currentState = this._states[0];
        }
예제 #2
0
 private void ChangeState(int index, params object[] param)
 {
     if (this._currentStateIndex == index)
     {
         return;
     }
     this._states[this._currentStateIndex].OnExit();
     this._currentStateIndex = index;
     this._currentState      = this._states[this._currentStateIndex];
     this._currentState.OnEnter(param);
 }