Пример #1
0
 void GetReferences()
 {
     m_meshManager  = FindObjectOfType <MeshManager>();
     m_uvTool       = FindObjectOfType <UVTool>();
     m_buildingMenu = UICollection.instance.GetGameObject("Menu Building").GetComponent <UIBehaviour>();
     m_uvMenu       = UICollection.instance.GetGameObject("Menu UV").GetComponent <UIBehaviour>();
 }
 protected override void Awake()
 {
     base.Awake();
     m_uvTool = FindObjectOfType <UVTool>();
     if (m_uvTool == null)
     {
         Debug.LogWarning("Could not find UVTool!");
     }
 }