Inventory.RunPluginCommand
#
Declarationpublic virtual void RunPluginCommand(GDTKItem item, string command, Object[] args, Action onCompleteCallback)
#
ParametersName | Description |
---|---|
item | Item containing plugin |
command | Command to run |
args | Parameters to send to commmand |
onCompleteCallback | Action to invoke upon completion |
#
DescriptionRun a plugin on an item
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target, GDTKItem other) { target.RunPluginCommand(other, "CommandName", new object[] { "Paremeter1", false }, null); }
}