예제 #1
0
 /// <summary>
 /// Unregister a previously registered MagicLeap API Update callback.
 /// </summary>
 /// <param name="callback">Callback to unregister.</param>
 public static void Unregister(OnUpdateActionsDelegate callback)
 {
     // Check instance instead of the Instance property to prevent
     // creating an instance to unregister something that won't be there.
     if (instance != null)
     {
         instance.OnUpdateActions -= callback;
     }
 }
예제 #2
0
 /// <summary>
 /// Register a MagicLeap API Update callback to be called on Update of this behavior.
 /// </summary>
 /// <param name="callback">Callback to register.</param>
 public static void Register(OnUpdateActionsDelegate callback)
 {
     Instance.OnUpdateActions += callback;
 }