Ejemplo n.º 1
0
    public void Dispose()
    {
        target = null;

        health       = null;
        mainResourse = null;
        parameters   = null;
        states       = null;

        GlobalCooldown.Dispose();
        GlobalCooldown = null;

        SpellCast.Dispose();
        SpellCast = null;

        Buffs.Dispose();
        Buffs = null;

        Spells.Dispose();
        Spells = null;

        AbsorbEffects.Clear();
        AbsorbEffects = null;

        PeriodicEffects.Clear();
        PeriodicEffects = null;

        PreviousTargets.Clear();
        PreviousTargets = null;

        for (int i = 0; i < CharacterEventTypes.Count; i++)
        {
            CharacterEvents[i].Clear();
        }

        CharacterEvents.Clear();
        CharacterEvents = null;
    }