示例#1
0
    private void ClearCasting()
    {
        currentPlayerState = PLAYER_STATE.IDLE;

        // Make it so you can select your next spell while still casting
        curSelectedSpell  = nextSpell != null ? nextSpell : null;
        nextSpell         = null;
        selectedCharacter = null;
    }
示例#2
0
    private bool CheckCooldown(SpellSlotLogic spell)
    {
        if (spell.onCooldown)
        {
            print("Player: Spell " + spell.GetSpellData().displayName + " is still on cooldown");
        }

        return(spell.onCooldown);
    }
示例#3
0
    private void SpellSlotClicked(SpellSlotLogic spell)
    {
        print("Player: SpellSlotClicked " + spell.GetSpellData().displayName);

        if (castbar.isCasting)
        {
            nextSpell = spell;
        }
        else
        {
            curSelectedSpell = spell;
        }
    }