// Use this for initialization void Start() { // Add a listener to the OVRTouchpad for touch events OVRTouchpad.AddListener(LocalTouchEventCallback); // Initialize the proper target set targetSet = 0; SwitchTargets[0].SetActive <OVRLipSyncContextMorphTarget>(0); SwitchTargets[1].SetActive <OVRLipSyncContextMorphTarget>(0); }
// * * * * * * * * * * * * * // Private members /// <summary> /// Start this instance. /// Note: make sure to always have a Start function for classes that have editor scripts. /// </summary> void Start() { // Add a listener to the OVRTouchpad for touch events if (enableTouchInput) { OVRTouchpad.AddListener(LocalTouchEventCallback); } // Find console OVRLipSyncDebugConsole[] consoles = FindObjectsOfType <OVRLipSyncDebugConsole>(); if (consoles.Length > 0) { hasDebugConsole = consoles[0]; } }
// Start is called before the first frame update void Start() { OVRTouchpad.Create(); OVRTouchpad.AddListener(SwipeHandler); }
void Start() { // Add a listener to the OVRTouchpad for testing OVRTouchpad.AddListener(LocalTouchEventCallback); }
void Start() { OVRTouchpad.Create(); OVRTouchpad.AddListener(LocalTouchEventCallback); }