示例#1
0
        private void registNativeLog()
        {
            var logDel          = new Action <string>(NativeClass.nativeLogHandler);
            var intptr_delegate = Marshal.GetFunctionPointerForDelegate(logDel);

            NativeClass.nativeRegistLogHandler(intptr_delegate);
        }
示例#2
0
 private void OnDestroy()
 {
     //print(LOG_TAG + " OnDestroy");
     stopDecoding();
     NativeClass.nativeRegistLogHandler(IntPtr.Zero);
 }