Esempio n. 1
0
    private void ProcessPlayerAbilities()
    {
        if (cast.IsCasting)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            cast.CastSpellAtAttackableTarget(Spells.Fireball);
            //InterruptMoving();
        }
        else if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            cast.CastSpellAtAttackableTarget(Spells.Frostbolt);
            //InterruptMoving();
        }
    }