Skip to main content

StatSource.RemoveRemoteStatSource

Declaration#

public virtual void RemoveRemoteStatSource(string key)

Parameters#

NameDescription
keyKey to remove

Description#

Remove a keyed remote Stat Source for use in formulas/expressions

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatSource target)    {        target.RemoveRemoteStatSource("myId");    }
}

Declaration#

public virtual void RemoveRemoteStatSource(string key, StatSource source)

Parameters#

NameDescription
keyKey of source
sourceSource to remove

Description#

Remove a keyed remote Stat Source for use in formulas/expressions

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatSource target, StatSource other)    {        // Remove a stat source only if it has the provided key        target.RemoveRemoteStatSource("myId", other);    }
}