private bool m_Selected; // Whether the user is looking at the VRInteractiveItem currently. private void Awake() { if (m_InteractiveItem == null) { m_InteractiveItem = this.GetComponent <gazeableObject>(); } if (thePlayer == null) { thePlayer = GameObject.FindObjectOfType <mainPlayer>(); m_SelectionRadial = thePlayer.GetComponent <gazeTimerVisual>(); } }
private void Awake() { m_InteractiveItem = this.GetComponent <gazeableObject>(); m_Renderer = this.GetComponent <Renderer>(); tmpLabel = GetComponentInChildren <TextMeshPro>(); roomSwitcher = FindObjectOfType <switchRooms>(); m_SelectionRadial = FindObjectOfType <gazeTimerVisual>(); if (m_Renderer) { m_Renderer.material = m_NormalMaterial; } setRoom(curRoom); }