private static void GetPathFromLocation() { ScriptsPathData data = ToolCacheManager.GetCacheObject <ScriptsPathData>(PathManager.FrameScriptDataPath + m_DataName); m_ViewPath = data.ViewPath; m_MediatorPath = data.MediatorPath; }
private static void GetPathFromLocation() { ScriptsPathData data = ToolCacheManager.GetCacheObject <ScriptsPathData>(PathManager.StrangeIOCDataPath); m_ViewPath = data.ViewPath; m_MediatorPath = data.MediatorPath; }
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; } } }
//从本地读取数据 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)); }
private static string GetNamespaceName() { return(ToolCacheManager.GetCacheObject <NameSpaceData>(PathManager.NameSpaceDataPath).NameSpaceName); }