Пример #1
0
 void Start()
 {
     m_manager = GetComponentInParent <VdmDesktopManager>();
     if (m_manager)
     {
         m_manager.Connect(this);
     }
 }
Пример #2
0
    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();
    }