Esempio n. 1
0
 void Awake()
 {
     Utils.Logger.Info("PlayerIdentityGeneral Settings awakening...");
     s_RuntimeSettingsInstance = this;
     Application.quitting     += Quit;
     DontDestroyOnLoad(s_RuntimeSettingsInstance);
 }
Esempio n. 2
0
        void ExitPlayMode()
        {
            if (m_IsPlaying)
            {
                m_IsPlaying = false;
                StopPlayerIdentitySDK();
                DeInitPlayerIdentitySDK();

                s_RuntimeSettingsInstance = null;
            }
        }
Esempio n. 3
0
        void EnterPlayMode()
        {
            if (!m_IsPlaying)
            {
                s_RuntimeSettingsInstance = this;

                InitPlayerIdentitySDK();
                StartPlayerIdentitySDK();
                m_IsPlaying = true;
            }
        }
Esempio n. 4
0
        internal static void AttemptStartPlayerIdentitySDKOnBeforeSplashScreen()
        {
#if !UNITY_EDITOR
            PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance;
            if (instance == null || !instance.InitManagerOnStart)
            {
                return;
            }

            instance.StartPlayerIdentitySDK();
#endif
        }
Esempio n. 5
0
        internal static void AttemptInitializePlayerIdentitySDKOnLoad()
        {
#if !UNITY_EDITOR
            PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance;
            if (instance == null || !instance.InitManagerOnStart)
            {
                return;
            }

            instance.InitPlayerIdentitySDK();
#endif
        }
Esempio n. 6
0
        static void Quit()
        {
            PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance;

            if (instance == null)
            {
                return;
            }

            instance.OnDisable();
            instance.OnDestroy();
        }