public static void ApplyTrackedStatMod(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.ApplyTrackedMod(stat, mod, s, statOptions);
            SendStatChangeEvent(source.Owner, t, stat, mod.Value);
        }
        else
        {
            Debug.LogWarning("a stat mod: " + mod + " could not be added to a target because it was null");
        }
    }
Exemple #2
0
 public static void ApplyTrackedStatMod(StatCollection source, StatCollection target, StatType stat, StatModifier mod, params StatModifierOption[] statOptions)
 {
     target.ApplyTrackedMod(stat, mod, source.Owner, statOptions);
     SendStatChangeEvent(source.Owner, target.Owner, stat, mod.Value);
 }