You've already forked Commercialization.topon
release: 1.4.2
This commit is contained in:
@@ -61,6 +61,11 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
|
||||
public static void ShowManager()
|
||||
{
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var manager = GetWindow<ATIntegrationManagerWindow>(utility: true, title: windowTitle, focus: true);
|
||||
manager.minSize = windowMinSize;
|
||||
// manager.maxSize = windowMinSize;
|
||||
@@ -125,6 +130,11 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
warningIcon = new Texture2D(100, 100, TextureFormat.RGBA32, false);
|
||||
warningIcon.LoadImage(warningIconData);
|
||||
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
loadPluginData();
|
||||
//热更新
|
||||
ATIntegrationHotFix.Instance.loadHotFixData();
|
||||
@@ -158,6 +168,13 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
GUILayout.Space(10);
|
||||
EditorGUILayout.HelpBox("AnyThinkSDKEditor 未开启,SDK Manager 已禁用。需要维护 SDK 时请先添加 Scripting Define Symbol: AnyThinkSDKEditor。", MessageType.Info);
|
||||
return;
|
||||
}
|
||||
|
||||
// OnGUI is called on each frame draw, so we don't want to do any unnecessary calculation if we can avoid it. So only calculate it when the width actually changed.
|
||||
if (Math.Abs(previousWindowWidth - position.width) > 1)
|
||||
{
|
||||
@@ -242,6 +259,13 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
//获取插件和SDK的版本数据
|
||||
private void loadPluginData()
|
||||
{
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
pluginData = null;
|
||||
pluginDataLoadFailed = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (loadDataCoroutine != null)
|
||||
{
|
||||
loadDataCoroutine.Stop();
|
||||
@@ -275,6 +299,11 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
//获取networks
|
||||
private void loadNetworksData(PluginData pluginData)
|
||||
{
|
||||
if (!ATConfig.EnableEditorTools)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ATEditorCoroutine.startCoroutine(ATIntegrationManager.Instance.loadNetworksData(pluginData, data =>
|
||||
{
|
||||
pluginData = data;
|
||||
@@ -859,4 +888,4 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user