private void GetItemSetting() { if (null == item) { return; } itemInfo = item.GetComponent <SceneItemInfo>(); }
private void Release() { prefab = null; if (null != item) { DestroyImmediate(item); item = null; } itemInfo = null; }
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(); }
private void OnLoaded() { theInfo = rootModel.GetComponent <SceneItemInfo>(); this.InfoRef(); CheckGetActionSet(); }