/// <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); } } }
/// <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); } } }
/// <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); } }
/// <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); } }