コード例 #1
0
 public static void ThrottleDetectorUnsubscribe(Action <float> throttleChanged)
 {
     if (UtilApi != null)
     {
         UtilApi
         .GetMethod(nameof(ThrottleDetectorUnsubscribe), BindingFlags.Public | BindingFlags.Static)
         .Invoke(null, new object[] { throttleChanged });
         Debug.Log("[ModCommunicationSample.Other] Utils are available. Unsubscribed.");
     }
     else
     {
         Debug.Log("[ModCommunicationSample.Other] Utils are unavailable. Not unsubscribed.");
     }
 }