StatSource.RunAction
Declaration#
public virtual Object RunAction(string id, Object[] args)Parameters#
| Name | Description |
|---|---|
| id | Id of the action to run |
| args | Parameters 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 }); }
}