private static void InitCompleteHandler(NPNFError error) { initState = NPNFPlatformInitState.HasInitialized; foreach (Action <NPNFError> callback in CallbackQueue) { callback(error); } CallbackQueue.Clear(); }
private static void LoadComplete(object sender, LoadCompleteArgs args) { initState = NPNFPlatformInitState.HasInitialized; if (InitCallback != null) { InitCallback(args.error); InitCallback = null; } foreach (PlatformInitCallback callback in CallbackQueue) { callback(args.error); } CallbackQueue.Clear(); }
private static void ProcessInit(Action <NPNFError> callback = null) { initState = NPNFPlatformInitState.Initializing; QueueInit(callback); UnityEngine.Debug.Log("NPNF Platform Init"); Settings = NPNFSettings.Instance; NPNFMain.Settings = Settings; if (NPNFMain.Settings != null) { NPNFMain.OnInitComplete += InitCompleteHandler; NPNFMain.OnInitDeviceProfile += InitDeviceProfileHandler; } CustomFeaturesInitialization(); NPNFMain.Init(); #if !UNITY_WEBPLAYER Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes"); #endif }
private static void ProcessInit(PlatformInitCallback callback = null) { initState = NPNFPlatformInitState.Initializing; InitCallback = callback; UnityEngine.Debug.Log("NPNF Platform Init"); Settings = NPNFSettings.Instance; NPNFMain.Settings = Settings; if (NPNFMain.Settings != null) { NPNFMain.OnInitProfile += InitProfile; NPNFMain.OnLoadComplete += LoadComplete; } CustomFeaturesInitialization(); NPNFMain.Init(); #if !UNITY_WEBPLAYER Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes"); #endif }
private static void ProcessInit(Action<NPNFError> callback = null) { initState = NPNFPlatformInitState.Initializing; QueueInit(callback); UnityEngine.Debug.Log("NPNF Platform Init"); Settings = NPNFSettings.Instance; NPNFMain.Settings = Settings; if (NPNFMain.Settings != null) { NPNFMain.OnInitComplete += InitCompleteHandler; NPNFMain.OnInitDeviceProfile += InitDeviceProfileHandler; } CustomFeaturesInitialization(); NPNFMain.Init(); #if !UNITY_WEBPLAYER Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes"); #endif }
private static void InitCompleteHandler(NPNFError error) { initState = NPNFPlatformInitState.HasInitialized; foreach (Action<NPNFError> callback in CallbackQueue) { callback(error); } CallbackQueue.Clear(); }