Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yomunsam committed Jul 18, 2019
1 parent 992c409 commit d0dc638
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions Assets/TinaX/Editor/Setup/FrameworkSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,17 +255,20 @@ private void Draw_Install_Success()
/// <summary>
/// 在引擎编辑器启动的时候加载一次,确保一些框架关键性依赖和配置文件正常
/// </summary>
[UnityEditor.InitializeOnLoad]
public class FrameworkAutoSetup
{
static FrameworkAutoSetup()
{
//Debug.Log("喵!");
foreach(var item in TinaX.Conf.ConfigRegister.ConfigRegisters)
{
item.Action_Create();
}
}
}
//[UnityEditor.InitializeOnLoad]
//public class FrameworkAutoSetup
//{
// static FrameworkAutoSetup()
// {
// //Debug.Log("喵!");
// foreach(var item in TinaX.Conf.ConfigRegister.ConfigRegisters)
// {
// item.Action_Create();
// }
// }
//}

//上面这段代码导致了一个很沙雕的bug

}

0 comments on commit d0dc638

Please sign in to comment.