void Start() { m_manager = GetComponentInParent <VdmDesktopManager>(); if (m_manager) { m_manager.Connect(this); } }
void Start() { m_manager = transform.parent.GetComponent <VdmDesktopManager>(); m_line = GetComponent <LineRenderer>(); m_renderer = GetComponent <Renderer>(); m_collider = GetComponent <MeshCollider>(); m_manager.Connect(this); //Hide(); }