コード例 #1
0
    public bool Fill(ControlledProjectile projectile, Spell origin_spell)
    {
        if (IsAvailable())
        {
            this.projectile = projectile;
            this.origin_spell = origin_spell;
            projectile.SetManaSlot(this);
            return true;
        }

        return false;
    }
コード例 #2
0
ファイル: Mage.cs プロジェクト: RPITeamTree/Spelleo_RGS2015
    public bool FillManaSlot(ControlledProjectile p, Spell origin_spell)
    {
        for (int i = 0; i < mana_slots.Count; ++i)
        {
            if (mana_slots[i].IsAvailable())
            {
                mana_slots[i].Fill(p, origin_spell);

                if (event_fill_slot != null) event_fill_slot(mana_slots[i]);
                return true;
            }
        }
        return false;
    }