コード例 #1
0
    public void SpellCasted(Spell spell, SpellSlotCaster spellSlot)
    {
        spellQueue.Add(spell);
        spellSlotQueue.Add(spellSlot);

        UpdateSpellSlots();
    }
コード例 #2
0
    void GiveSpellToSlot(SpellSlotCaster spellSlot)
    {
        Spell nextSpell = GetNextSpell();

        if (nextSpell != null)
        {
            spellSlot.Initialize(nextSpell);
            spellSlotQueue.Remove(spellSlot);
        }
    }