/// <summary> /// 开始堆栈 /// </summary> /// <returns></returns> public static LCLogStack Begin() { // todo: 增加启动 项目开始时设置 if (_instance != null) { return(_instance); } GameObject create = LCSCompHelper.Create("_LOG Stack"); _instance = LCSCompHelper.FindComponet <LCLogStack>(create); Application.RegisterLogCallback(_instance.LogCallback); return(_instance); }
/// <summary> /// 开始分析 /// /// 自己创建一个节点 /// </summary> /// <returns></returns> public static LCProfiler BeginProfiler() { GameObject create = LCSCompHelper.Create("_Profiler"); return(BeginProfiler(create)); }