GDTKItem.CanPerformAction
Declaration#
public bool CanPerformAction(string actionKey)Parameters#
| Name | Description |
|---|---|
| actionKey | Key of the action to check |
Description#
Check if a plugin action can be performed
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(GDTKItem target, string actionName) { bool result = target.CanPerformAction(actionName); }
}