Created
June 6, 2017 13:51
-
-
Save AVatch/0d3f66a34603f5ea43d9aa65e5366e34 to your computer and use it in GitHub Desktop.
Holotoolkit Event Subscription Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
using HoloToolkit.Unity.InputModule; | |
using System; | |
public class HologramManager : MonoBehaviour, IInputClickHandler, IFocusable | |
{ | |
// Use this for initialization | |
void Start() | |
{ | |
} | |
// Update is called once per frame | |
void Update() | |
{ | |
} | |
// Called on Air Tap gesture | |
public void OnInputClicked(InputEventData eventData) | |
{ | |
} | |
// Called on the Gaze Enter Event | |
public void OnFocusEnter() | |
{ | |
} | |
// Called on the Gaze Exit Event | |
public void OnFocusExit() | |
{ | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment