void Start() { //turn off the default main camera if (GameObject.Find("Main Camera")) { GameObject.Find("Main Camera").SetActive(false); } viewLabel.SetActive(false); if (GameObject.Find("RhinoInside")) { rhinoInside = GameObject.Find("RhinoInside"); } if (GameObject.Find("PlayManager")) { playmgr = GameObject.Find("PlayManager").GetComponent <PlayManager>(); playmgr.AddPlayer(); } if (GameObject.Find("Views")) { viewmgr = GameObject.Find("Views").GetComponent <ViewManager>(); viewmgr.activePlayer = this; Debug.Log("Teleport points found"); optmgr = GameObject.FindObjectsOfType <OptionManager>(); if (optmgr.Length > 0) { foreach (OptionManager opt in optmgr) { opt.transform.gameObject.SetActive(true); } } } SetHeight(); transform.Find("Hand").gameObject.GetComponent <VRRaycaster>(); if (isLocalPlayer) { #if !UNITY_EDITOR //hide headset model transform.Find("Head/OculusGo").gameObject.SetActive(false); #endif CmdSetID(); } else { //hide headset light transform.Find("Head/Point Light").gameObject.SetActive(false); //disable tracking space trackingSpace.SetActive(false); //turn off locomotion locomotion.SetActive(false); } #if UNITY_STANDALONE || UNITY_EDITOR //turn off locomotion to prevent controller access warnings locomotion.SetActive(false); //turn off ovr cameras trackingSpace.transform.Find("LeftEyeAnchor").gameObject.SetActive(false); trackingSpace.transform.Find("RightEyeAnchor").gameObject.SetActive(false); trackingSpace.transform.Find("CenterEyeAnchor").gameObject.SetActive(false); trackingSpace.transform.Find("LeftHandAnchor").gameObject.SetActive(false); trackingSpace.transform.Find("RightHandAnchor").gameObject.SetActive(false); #endif }