Beispiel #1
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
        }
Beispiel #2
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
        }