예제 #1
0
 private static void InitCompleteHandler(NPNFError error)
 {
     initState = NPNFPlatformInitState.HasInitialized;
     foreach (Action <NPNFError> callback in CallbackQueue)
     {
         callback(error);
     }
     CallbackQueue.Clear();
 }
예제 #2
0
        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();
        }
예제 #3
0
        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
        }
예제 #4
0
        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
        }
예제 #5
0
        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
        }
예제 #6
0
 private static void InitCompleteHandler(NPNFError error)
 {
     initState = NPNFPlatformInitState.HasInitialized;
     foreach (Action<NPNFError> callback in CallbackQueue)
     {
         callback(error);
     }
     CallbackQueue.Clear();
 }