// Use this for initialization void Start() { head = GameObject.Find("HeadNode"); controller = GetComponent <CharacterController>(); wController = GetComponent <WandOnlyController>(); if (m_RefNode == null) { m_RefNode = GameObject.Find(ReferenceNode); } }
private WandOnlyController wandController = null; //a script that controls the wand, i.e the cursor, movments when the inputs are blocked void Start() { Cursor.visible = false; head = GameObject.Find("HeadNode"); wand = GameObject.Find("VRWand"); charController = GetComponent <CharacterController>(); wandController = GetComponent <WandOnlyController>(); if (m_RefNode == null) { m_RefNode = GameObject.Find(ReferenceNode); } }
// Use this for initialization void Start() { m_keyb = MiddleVR.VRDeviceMgr.GetKeyboard(); m_headNode = GameObject.Find("HeadNode"); //m_menu = GameObject.Find ("VRMenu"); //m_menuManager = m_menu.GetComponent<VRMenuManager> (); m_controller = GameObject.Find("Utilisateur").GetComponent <VRFPSInputController>(); m_wController = GameObject.Find("Utilisateur").GetComponent <WandOnlyController>(); m_wand = GameObject.Find("VRWand"); Cursor.visible = false; }