private GameObject m_CenterEyeAnchor; // Reference to the CenterEyeAnchor on the OVRCameraRig in Scene0 // Use this for initialization void Start() { if (s_Instance == null) { s_Instance = this; m_Manager = IntroSessionManager.s_Instance; m_CenterEyeAnchor = m_Manager.GetCenterEyeAnchor(); m_RaycasterScript = m_CenterEyeAnchor.GetComponent <RaycasterVR>(); m_LoadingBar = m_Manager.GetLoadingBar(); m_Reticle = m_Manager.GetReticle(); m_Manager.GetControllerModel().SetActive(false); // Make sure the controller model is hidden since it is shown after this scene. m_ArrowsList = new string[4] { "ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown" }; // The order in which the user is supposed to look at the arrows. i_CurrentArrow = 0; // Starts at the left arrow m_RaycasterScript.m_OverrideDefaultReticleControls = true; // Override the default controls of the reticle FaceArrowsToUser(); // Face the arrows towards the user m_Manager.GlobalMessage(m_DialogueInstructions.DialogueElements[0]); } else { Destroy(gameObject); } }