StatSource.RemoveRemoteStatSource
Declaration#
public virtual void RemoveRemoteStatSource(string key)Parameters#
| Name | Description |
|---|---|
| key | Key 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#
| Name | Description |
|---|---|
| key | Key of source |
| source | Source 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); }
}