Example #1
0
 private void GetItemSetting()
 {
     if (null == item)
     {
         return;
     }
     itemInfo = item.GetComponent <SceneItemInfo>();
 }
Example #2
0
 private void Release()
 {
     prefab = null;
     if (null != item)
     {
         DestroyImmediate(item);
         item = null;
     }
     itemInfo = null;
 }
Example #3
0
 private void DrawNoItemInfo()
 {
     GUILayout.BeginHorizontal();
     EditorGUILayout.LabelField("没有挂载场景物体脚本", GUILayout.Width(120));
     if (GUILayout.Button("挂载", GUILayout.Width(120f)))
     {
         if (null != item)
         {
             itemInfo = item.AddComponent <SceneItemInfo>();
         }
     }
     GUILayout.EndHorizontal();
 }
Example #4
0
 private void OnLoaded()
 {
     theInfo = rootModel.GetComponent <SceneItemInfo>();
     this.InfoRef();
     CheckGetActionSet();
 }