示例#1
0
        private static void GetPathFromLocation()
        {
            ScriptsPathData data = ToolCacheManager.GetCacheObject <ScriptsPathData>(PathManager.FrameScriptDataPath + m_DataName);

            m_ViewPath     = data.ViewPath;
            m_MediatorPath = data.MediatorPath;
        }
示例#2
0
        private static void GetPathFromLocation()
        {
            ScriptsPathData data = ToolCacheManager.GetCacheObject <ScriptsPathData>(PathManager.StrangeIOCDataPath);

            m_ViewPath     = data.ViewPath;
            m_MediatorPath = data.MediatorPath;
        }
示例#3
0
 private static void ChangeDefaultFont()
 {
     if (Selection.activeGameObject != null)
     {
         Text text = Selection.activeGameObject.Get <Text>();
         if (text != null)
         {
             text.font = ToolCacheManager.GetCacheObject <FontData>(PathManager.FontDataPath).defaultFont;
         }
     }
 }
示例#4
0
        //从本地读取数据
        private static void ReadDataFromLocal()
        {
            EntitasData data = ToolCacheManager.GetCacheObject <EntitasData>(PathManager.EntitasDataPath);

            if (data != null)
            {
                ViewPath           = data.ViewPath;
                ServicePath        = data.ServicePath;
                SystemPath         = data.SystemPath;
                ServiceManagerPath = data.ServiceManagerPath;
                GameFeaturePath    = data.GameFeaturePath;
                InputFeaturePath   = data.InputFeaturePath;
                ViewFeaturePath    = data.ViewFeaturePath;
            }
        }
 public static void OpenWindow()
 {
     window         = GetWindow(typeof(SetDefaultFont));
     window.minSize = new Vector2(500, 300);
     m_font         = ToolCacheManager.GetCacheObject <FontData>(PathManager.FontDataPath).defaultFont;
 }
 private static void Init()
 {
     _name = ToolCacheManager.GetCacheObject <NameSpaceData>(PathManager.NameSpaceDataPath).NameSpaceName;
 }
 public static NamespaceData GetData()
 {
     return(ToolCacheManager.GetCacheObject <NamespaceData>(PathManager.NameSpaceDataPath));
 }
示例#8
0
 private static string GetNamespaceName()
 {
     return(ToolCacheManager.GetCacheObject <NameSpaceData>(PathManager.NameSpaceDataPath).NameSpaceName);
 }