示例#1
0
    public static void Enable()
    {
        if (isEnable)
        {
            return;
        }

        isEnable = true;

        build.debugLevel = BuildSettings.DebugLevel.Debug;

        PlayerPrefs.SetInt("remoteLogger", 1);

        Debug.Log("Remote Logger - Enabled");
        Application.logMessageReceived += instance.HandleLog;
        instance.StartCoroutine(instance.WaitForRequest());
    }
示例#2
0
    public static void Enable()
    {
        if (isEnable)
        {
            return;
        }

        isEnable = true;

        PlayerPrefs.SetInt("remoteLogger", 1);

        Debug.Log("Remote Logger - Enabled");


        Application.RegisterLogCallback(instance.HandleLog);

        instance.StartCoroutine(instance.WaitForRequest());
    }
示例#3
0
    public static void Enable()
    {
        if (isEnable)
        {
            return;
        }

        isEnable = true;

        PlayerPrefs.SetInt("remoteLogger", 1);

        Debug.Log("Remote Logger - Enabled");

#if UNITY_5
        Application.logMessageReceived += instance.HandleLog;
#else
        Application.RegisterLogCallback(instance.HandleLog);
#endif

        instance.StartCoroutine(instance.WaitForRequest());
    }