Пример #1
0
    public static void RemoveTrackedStatMod(StatCollection source, StatCollection target, StatType stat, StatModifier mod, params StatModifierOption[] statOptions)
    {
        GameObject s = source != null ? source.Owner : null;
        GameObject t = target != null ? target.Owner : null;

        if (t != null)
        {
            target.RemoveTrackedMod(stat, mod, s, statOptions);
            SendStatChangeEvent(source.Owner, t, stat, -mod.Value);
        }
        else
        {
            Debug.LogWarning("a stat mod: " + mod + " could not be removed from a target because it was null");
        }
    }
Пример #2
0
 public static void RemoveTrackedStatMod(StatCollection source, StatCollection target, StatType stat, StatModifier mod, params StatModifierOption[] statOptions)
 {
     target.RemoveTrackedMod(stat, mod, source.Owner, statOptions);
     SendStatChangeEvent(source.Owner, target.Owner, stat, -mod.Value);
 }