// Use this for initialization void Start() { _usmooth = new UsMain(LogRemotely, LogIntoFile, InGameGui); #if UNITY_5 Application.logMessageReceived += this.log; #else Application.RegisterLogCallback(this.log); #endif Lua.Instance.InitLuaProfiler(); }
void Start() { _usmooth = new UsMain(LogRemotely, LogIntoFile, InGameGui); #if UNITY_EDITOR EditorWindow w = EditorWindow.GetWindow <EditorWindow>("MemoryProfilerWindow"); if (w.GetType().Name == "MemoryProfilerWindow") { w.SendEvent(EditorGUIUtility.CommandEvent("AppStarted")); } #endif ResourceTracker.Instance = new ResourceTracker(true); }
void Start() { _usmooth = new UsMain(LogRemotely, LogIntoFile, InGameGui); }