示例#1
0
 private static void _Unsubscribe(LogCallback onLog)
 {
     // Separate function because the native call will make C# atempt
     // to load the library as soon as it enters this method.
     callbacks.Remove(onLog);
     NativeAPI.log_unsubscribe(onLog);
 }
示例#2
0
 /// <summary>If you subscribed to the log callback, you can unsubscribe that callback here!</summary>
 /// <param name="onLog">The subscribed callback to remove.</param>
 public static void Unsubscribe(LogCallback onLog)
 {
     callbacks.Remove(onLog);
     NativeAPI.log_unsubscribe(onLog);
 }