internal void InitDate() { m_TabData = new FileTemplateTabData(); m_TabData.m_UsingNamespace = new List <string>(); m_TabData.m_UsingNamespace.AddRange(new string[2] { "UnityEngine", "System.Collections" }); m_TabData.m_ModuleInfo = new List <ModuleInfo> { new ModuleInfo { Name = "property variable" }, new ModuleInfo { Name = "Unity Methods", m_Methods = new List <string> { "Awake", "OnEnable", "Start", "Update", "OnDisable", } }, new ModuleInfo { Name = "private Methods" }, new ModuleInfo { Name = "Protected & Public Methods" }, }; }
internal void OnEnable() { m_TabData = Tools_Public.ReadDate <FileTemplateTabData>("FileTemplate"); if (m_TabData == null) { InitDate(); } if (m_FileSetting != null) { m_FileSetting.OnEnable(this); } if (m_FilePrevew != null) { m_FilePrevew.OnEnable(this); } }