浏览代码

Debug log on init managers

/main
Thomas ICHÉ 6 年前
当前提交
c6f9902a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Runtime/Managers/Manager.cs

3
Runtime/Managers/Manager.cs


[RuntimeInitializeOnLoadMethod]
static void AutoCreateAll()
{
Debug.Log("Initializing all Managers...");
foreach(var type in kAllManagerTypes)
{
var attrib =type.GetCustomAttribute<ManagerDefaultPrefabAttribute>();

GameObject.DontDestroyOnLoad(gameObject);
var comp = (Manager)gameObject.GetComponent(type);
s_Managers.Add(type,comp);
Debug.Log(string.Format(" -> <{0}> OK", type.Name));
}
}

正在加载...
取消
保存