Пример #1
0
        void OnSelectionChange()
        {
            if (!m_Initialized)
            {
                return;
            }

            var myTreeAsset = Selection.activeObject as QuestAsset;

            if (myTreeAsset != null && myTreeAsset != m_MyTreeAsset)
            {
                m_MyTreeAsset = myTreeAsset;
                m_TreeView.treeModel.SetData(GetData());
                m_TreeView.Reload();
            }
        }
Пример #2
0
 void SetTreeAsset(QuestAsset myTreeAsset)
 {
     m_MyTreeAsset = myTreeAsset;
     m_Initialized = false;
 }