private void Awake() { DontDestroyOnLoad(this); VisibleLogUtility visiblelog = gameObject.AddComponent <VisibleLogUtility>(); visiblelog.setInstance(visiblelog); VisibleLogUtility.getInstance().mVisibleLogSwitch = FastUIEntry.LogSwitch; Application.logMessageReceived += VisibleLogUtility.getInstance().HandleLog; DOTween.Init(); }
/// <summary> /// 添加Mono相关的组件 /// </summary> private void addMonoComponents() { VisibleLogUtility visiblelog = gameObject.AddComponent <VisibleLogUtility>(); visiblelog.setInstance(visiblelog); VisibleLogUtility.getInstance().mVisibleLogSwitch = FastUIEntry.LogSwitch; Application.logMessageReceived += VisibleLogUtility.getInstance().HandleLog; gameObject.AddComponent <FastUIEntry>(); gameObject.AddComponent <CoroutineManager>(); gameObject.AddComponent <NativeMessageHandler>(); NativeMessageHandler.Singleton.TxtNativeOutput = TxtNativeOutput; }
/// <summary> /// 添加Mono相关的组件 /// </summary> private void addMonoComponents() { VisibleLogUtility visiblelog = gameObject.AddComponent <VisibleLogUtility>(); visiblelog.setInstance(visiblelog); VisibleLogUtility.getInstance().mVisibleLogSwitch = FastUIEntry.LogSwitch; Application.logMessageReceived += VisibleLogUtility.getInstance().HandleLog; gameObject.AddComponent <FastUIEntry>(); gameObject.AddComponent <CoroutineManager>(); var rmm = gameObject.AddComponent <ResourceModuleManager>(); rmm.setInstance(rmm); var humm = gameObject.AddComponent <HotUpdateModuleManager>(); humm.setInstance(humm); }