Skip to main content

StatSource.RunAction

Declaration#

public virtual Object RunAction(string id, Object[] args)

Parameters#

NameDescription
idId of the action to run
argsParameters to send with the action

Description#

Run an action

Usage#

Example
using NullSave.GDTK;using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public SimpleEvent onCustomAction;
    public void ExampleMethod(StatSource target)    {        target.RunAction("customAction", new object[] { onCustomAction });    }
}