Example #1
0
 public static void CreateInstanceIfNeed()
 {
     if (instance == null)
     {
         GameObject updater = new GameObject("UnityCallbackUpdate");
         DontDestroyOnLoad(updater);
         instance = updater.AddComponent <UnityCallbackUpdate>();
     }
 }
Example #2
0
 public void UnsafeOnCompleted(Action continuation)
 {
     UnityCallbackUpdate.AddListener(continuation);
 }