Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     _rootAction = MixedRealityToolkit.GetService <OpenKitService>().EnsureRootAction("Test Root Action");
     _startActionBtn.onClick.AddListener(OnActionButtonClicked);
     _startAction2Btn.onClick.AddListener(OnActionButton2Clicked);
     _startTaskBtn.onClick.AddListener(OnStartTaskButtonClicked);
     _destroyBtn.onClick.AddListener(OnDestroyClicked);
     _rootAction.ReportEvent("Added button listeners");
 }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     _rootAction.ReportEvent("OnDestroy").LeaveAction();
 }