PluginStatus.cs 595 B

1234567891011121314151617181920212223
  1. using NibiruTask;
  2. using UnityEngine;
  3. namespace NXR.Samples
  4. {
  5. public class PluginStatus : MonoBehaviour
  6. {
  7. public Nxr.Internal.PLUGIN_ID pluginId;
  8. public TextMesh declaredTM;
  9. public TextMesh supportedTM;
  10. // Use this for initialization
  11. void Start()
  12. {
  13. Debug.Log("Get plugin status..." + pluginId + "//" + (int) pluginId);
  14. declaredTM.text = "Declared: " + NibiruTaskApi.IsPluginDeclared(pluginId);
  15. supportedTM.text = "Supported: " + NibiruTaskApi.IsPluginSupported(pluginId);
  16. }
  17. }
  18. }