private void OnConnect() { // If wanting to use oculus, check if the device is intialised if (m_UseOculusRift) { s_OculusRiftActive = OVRDevice.IsInitialized() && OVRDevice.SensorCount > 0; } // Instantiate the galaxy camera s_GalaxyCamera = s_OculusRiftActive ? ((GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Cameras/OVRGalaxyCamera"))): ((GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Cameras/GalaxyCamera"))); // Instantiate the ship camera s_ShipCamera = s_OculusRiftActive ? ((GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Cameras/OVRShipCamera"))): ((GameObject)GameObject.Instantiate(Resources.Load("Prefabs/Cameras/ShipCamera"))); // Instantiate the HUD GameObject.Instantiate(Resources.Load("Prefabs/User Interface/HUD/HUD Root")); }