void OnTapped(object sender) { HUDLogController.instance.AddToLog("Tap Detected " + gameObject.name, HUDLogController.LogMessageTypes.Message, false); ARButtonEventArgs args = new ARButtonEventArgs() { GazeFocused = false, HandFocused = false, PriorityFocused = true }; OnPressedHandler handler = OnPressed; if (handler != null) { handler(this, args); } }
void OnGazeExit() { HUDLogController.QuickError(name + " exited"); MaterialPropertyBlock mpb = new MaterialPropertyBlock(); _Renderer.GetPropertyBlock(mpb); mpb.SetFloat("_Outline", 0); _Renderer.SetPropertyBlock(mpb); ARButtonEventArgs args = new ARButtonEventArgs() { GazeFocused = false, HandFocused = false, PriorityFocused = true }; OnExitedHandler handler = OnExited; if (handler != null) { handler(this, args); } }