Shows debug information on a heads-up display.
Inheritance: MonoBehaviour
コード例 #1
0
    /// <summary>
    /// Start this instance.
    /// </summary>
    void Start()
    {
        // Make sure to hide cursor
        if (Application.isEditor == false)
        {
#if UNITY_5_0 || UNITY_5_1
            Cursor.visible   = false;
            Cursor.lockState = CursorLockMode.Locked;
#else
            Screen.showCursor = false;
            Screen.lockCursor = true;
#endif
        }

        // CameraController updates
        if (cameraController != null)
        {
            // Add a GridCube component to this object
            gridCube = gameObject.AddComponent <OVRGridCube>();
            gridCube.SetOVRCameraController(ref cameraController);

            debugInfo = gameObject.AddComponent <OVRDebugInfo>();
            if (playerController != null)
            {
                debugInfo.SetPlayerController(ref playerController);
            }
        }
    }
コード例 #2
0
    /// <summary>
    /// Start this instance.
    /// </summary>
    void Start()
    {
        // Make sure to hide cursor
        if (Application.isEditor == false)
        {
            Screen.showCursor = false;
            Screen.lockCursor = true;
        }

        // CameraController updates
        if (cameraController != null)
        {
            // Add a GridCube component to this object
            gridCube = gameObject.AddComponent <OVRGridCube>();
            gridCube.SetOVRCameraController(ref cameraController);

            debugInfo = gameObject.AddComponent <OVRDebugInfo>();
            if (playerController != null)
            {
                debugInfo.SetPlayerController(ref playerController);
            }
        }
    }
コード例 #3
0
    /// <summary>
    /// Start this instance.
    /// </summary>
    void Start()
    {
        // Make sure to hide cursor
        if (Application.isEditor == false)
        {
            Screen.showCursor = false;
            Screen.lockCursor = true;
        }

        // CameraController updates
        if (cameraController != null)
        {
            // Add a GridCube component to this object
            gridCube = gameObject.AddComponent<OVRGridCube>();
            gridCube.SetOVRCameraController(ref cameraController);

            debugInfo = gameObject.AddComponent<OVRDebugInfo>();
            if(playerController != null)
                debugInfo.SetPlayerController(ref playerController);
        }
    }
コード例 #4
0
    /// <summary>
    /// Start this instance.
    /// </summary>
    void Start()
    {
        // Make sure to hide cursor
        if (Application.isEditor == false)
        {
        #if UNITY_5_0 || UNITY_5_1 || UNITY_5_2
            Cursor.visible = false;
            Cursor.lockState = CursorLockMode.Locked;
        #else
            Screen.showCursor = false;
            Screen.lockCursor = true;
        #endif
        }

        // CameraController updates
        if (cameraController != null)
        {
            // Add a GridCube component to this object
            gridCube = gameObject.AddComponent<OVRGridCube>();
            gridCube.SetOVRCameraController(ref cameraController);

            debugInfo = gameObject.AddComponent<OVRDebugInfo>();
            if(playerController != null)
                debugInfo.SetPlayerController(ref playerController);
        }
    }