コード例 #1
0
    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();
    }
コード例 #2
0
    /// <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;
    }
コード例 #3
0
    /// <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);
    }