public static void Initialize(NativeGallery.MediaPickCallback callback) { if (IsBusy) { return; } if (instance == null) { instance = new GameObject("NGMediaReceiveCallbackiOS").AddComponent <NGMediaReceiveCallbackiOS>(); DontDestroyOnLoad(instance.gameObject); } instance.callback = callback; IsBusy = true; }
public static void Initialize(NativeGallery.MediaPickCallback callback, int action) { if (IsBusy) { return; } if (instance == null) { instance = new GameObject("NGMediaReceiveCallbackiOS").AddComponent <NGMediaReceiveCallbackiOS>(); DontDestroyOnLoad(instance.gameObject); } instance.callback = callback; mAction = 1; instance.nextBusyCheckTime = Time.realtimeSinceStartup + 1f; IsBusy = true; }