Beispiel #1
0
        public void changeEnemyState(Boxer.STATE STATE)
        {
            switch (STATE)
            {
            case Boxer.STATE.IDLE:
                this.Enemy.Idle();
                break;

            case Boxer.STATE.BLOCK:
                this.Enemy.Block();
                break;

            case Boxer.STATE.LEFT:
                this.Enemy.Punch(true);
                break;

            case Boxer.STATE.RIGHT:
                this.Enemy.Punch(false);
                break;
            }
        }
Beispiel #2
0
 public void SetSTATE(Boxer.STATE STATE)
 {
     this.currentSTATE = STATE;
 }