コード例 #1
0
    void OnDestroy()
    {
        if (thread != null)
        {
            thread.Dispose();
            thread = null;
        }

        state.Dispose();
        state = null;
    }
コード例 #2
0
    void OnApplicationQuit()
    {
        if (thread != null)
        {
            thread.Dispose();
            thread = null;
        }

        state.Dispose();
        state = null;
        Application.logMessageReceived -= ShowTips;
    }
コード例 #3
0
    private void OnApplicationQuit()
    {
        if (thread != null)
        {
            thread.Dispose();
            thread = null;
        }
        state.Dispose();
        state = null;
#if UNITY_5 || UNITY_2017 || UNITY_2018
        Application.logMessageReceived -= ShowTips;
#else
        Application.RegisterLogCallback(null);
#endif
    }
コード例 #4
0
 private void CloseThread()
 {
     if (thread != null)
     {
         thread.Dispose();
         thread = null;
     }
 }