public void NoEnergy()
        {
            animState = new SpearManDeadState();

            animState.UpdateAnimParameters(this.anim);

            status = WarriorAnimState.Dead;
        }
        public void FaceToFaceEnemy()
        {
            animState = new SpearManAttackState();

            animState.UpdateAnimParameters(this.anim);

            status = WarriorAnimState.Attack;
        }
        public void NoTranslation()
        {
            animState = new SpearManIdleState();

            animState.UpdateAnimParameters(this.anim);

            status = WarriorAnimState.Idle;
        }
        public void Translate()
        {
            animState = new  SpearManLocomotionState();

            animState.UpdateAnimParameters(this.anim);

            status = WarriorAnimState.Locomotion;
        }
Esempio n. 5
0
        public void NoEnergy()
        {
            animState = new CrossBowDieState();

            animState.UpdateAnimParameters(this.anim);

            status = WarriorAnimState.Dead;
        }