Exemplo n.º 1
0
        public override HandState HandleInput(InputCommand inputCommand, SpellCaster spellCaster, Hand hand)
        {
            switch (inputCommand)
            {
            case InputCommand.GripReleased:
                if (hand.Equals(Hand.Left))
                {
                    ((HonoviSpellCaster)spellCaster).ImpulseSpell();
                    spellCaster.GetComponent <Collider>().enabled = true;
                    return(new HonoviNormalState());
                }
                else
                {
                    return(this);
                }

            case InputCommand.TouchpadPressed:
                if (hand.Equals(Hand.Left))
                {
                    return(this);
                }
                else
                {
                    ((HonoviSpellCaster)spellCaster).DestroyCurrentSpell();
                    spellCaster.ShowSeal();
                    PlayerController.Instance.UpdateHandColliders(false);
                    return(new HonoviTeleportingState());
                }

            default:
                return(this);
            }
        }
        public override HandState HandleInput(InputCommand inputCommand, SpellCaster spellCaster, Hand hand)
        {
            switch (inputCommand)
            {
            case InputCommand.TriggerPressed:
                ((HonoviSpellCaster)spellCaster).CastThrowableSpell("Prefabs/Characters/Honovi/Spells/FireBall");    //new SpellInfo(3000, "Prefabs/Characters/Honovi/Spells/FireBall", 6.5f,SpellName.Fireball));  //todo remove this and get the information from HOnovi.  12/10/2016
                spellCaster.GetComponent <Collider>().enabled = false;
                return(new HonoviHoldingFireBall());

            case InputCommand.GripPressed:
                if (hand.Equals(Hand.Left))
                {
                    spellCaster.CastBasicSpell("Prefabs/Characters/Honovi/Spells/Skull");    //new ExpandibleSpellInfo(4, "Prefabs/Characters/Honovi/Spells/Skull", 2000, 1, 8,SpellName.Skull)); //todo remove this and get the information from HOnovi 12/10/2016
                    spellCaster.GetComponent <Collider>().enabled = false;
                    return(new HonoviChargingSkullState());
                }
                else
                {
                    spellCaster.ActivateSpellSeal("Prefabs/Characters/Honovi/Spells/HonoviSpellSeal");
                    return(this);
                }

            case InputCommand.TouchpadPressed:
                if (hand.Equals(Hand.Left))
                {
                    spellCaster.ShowShield(true);
                    spellCaster.GetComponent <Collider>().enabled = false;
                    return(new HonoviHoldingShieldState());
                }
                else
                {
                    spellCaster.ShowSeal();
                    PlayerController.Instance.UpdateHandColliders(false);
                    return(new HonoviTeleportingState());
                }


            default:
                return(this);
            }
        }
Exemplo n.º 3
0
        public override HandState HandleInput(InputCommand inputCommand, SpellCaster spellCaster, Hand hand)
        {
            switch (inputCommand)
            {
            case InputCommand.TouchpadReleased:
                if (hand.Equals(Hand.Left))
                {
                    spellCaster.ShowShield(false);
                    spellCaster.GetComponent <Collider>().enabled = true;
                    return(new HonoviNormalState());
                }
                else
                {
                    return(this);
                }

            default:
                return(this);
            }
        }