Skip to content

Commit

Permalink
Merge pull request #221 from huangkumao/master
Browse files Browse the repository at this point in the history
修改一些小问题
  • Loading branch information
JasonXuDeveloper authored Oct 19, 2021
2 parents aa1c557 + 63f412e commit 730e050
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public class ClassBindMgr : MonoBehaviour
{
public static void Instantiate()
{
var _BindMgr = FindObjectOfType<ClassBindMgr>();
if (_BindMgr != null)
return;

_instance = new GameObject("ClassBindMgr").AddComponent<ClassBindMgr>();
DontDestroyOnLoad(_instance);
}
Expand Down
5 changes: 3 additions & 2 deletions UnityProject/Assets/Scripts/InitJEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ private void Awake()

Instance = this;
DontDestroyOnLoad(gameObject);

GameStats.Initialize();
GameStats.Debug = debug;
AssetMgr.Loggable = debug;

Updater.OnAssetsInitialized = (gameScene,onProgress) =>
{
Assets.AddSearchPath("Assets/HotUpdateResources/Controller");
Expand All @@ -72,8 +75,6 @@ private void Awake()

public void Load()
{
GameStats.Debug = debug;
GameStats.Initialize();
LoadHotFixAssembly();
}

Expand Down

0 comments on commit 730e050

Please sign in to comment.