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; }
private bool CheckCooldown(SpellSlotLogic spell) { if (spell.onCooldown) { print("Player: Spell " + spell.GetSpellData().displayName + " is still on cooldown"); } return(spell.onCooldown); }
private void SpellSlotClicked(SpellSlotLogic spell) { print("Player: SpellSlotClicked " + spell.GetSpellData().displayName); if (castbar.isCasting) { nextSpell = spell; } else { curSelectedSpell = spell; } }