// 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);
    }
示例#2
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];
        }
    }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     OVRTouchpad.Create();
     OVRTouchpad.AddListener(SwipeHandler);
 }
示例#4
0
 void Start()
 {
     // Add a listener to the OVRTouchpad for testing
     OVRTouchpad.AddListener(LocalTouchEventCallback);
 }
示例#5
0
 void Start()
 {
     OVRTouchpad.Create();
     OVRTouchpad.AddListener(LocalTouchEventCallback);
 }