Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostServerURL 的设置冗余问题 #86

Open
cchorseless opened this issue Jul 18, 2024 · 1 comment
Open

HostServerURL 的设置冗余问题 #86

cchorseless opened this issue Jul 18, 2024 · 1 comment

Comments

@cchorseless
Copy link

ResourceManager中的HostServerURL 和 SettingsUtils.FrameworkGlobalSettings.HostServerURL 是不是重复了?有啥区别

@cchorseless
Copy link
Author

    public async UniTask<InitializationOperation> InitPackage(string packageName)
    {

#if UNITY_EDITOR
//编辑器模式使用。
EPlayMode playMode = (EPlayMode)UnityEditor.EditorPrefs.GetInt("EditorPlayMode");
Log.Warning($"Editor Module Used :{playMode}");
#else
//运行时使用。
EPlayMode playMode = (EPlayMode)PlayMode;
#endif
HostServerURL = SettingsUtils.FrameworkGlobalSettings.HostServerURL;
FallbackHostServerURL = SettingsUtils.FrameworkGlobalSettings.FallbackHostServerURL;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant