コード例 #1
0
ファイル: Player.cs プロジェクト: obrown6652/Capstone
    private void AttackSpell(string spellName)
    {
        if (!MyIsAttacking_Spells)
        {
            //get the name of the spell from the spell book array
            Spell newSpell = SpellInventory.MyInstance.CastSpell(spellName);



            if (magicStat_Frame.MyCurrentValue >= newSpell.MagicCost)
            {
                MyAnimator.SetBool("attack", MyIsAttacking_Spells = true);

                attackCoroutine = StartCoroutine(newSpell.Ability());
            }
        }
    }