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

                s_RuntimeSettingsInstance = null;
            }
        }
Beispiel #3
0
        void EnterPlayMode()
        {
            if (!m_IsPlaying)
            {
                s_RuntimeSettingsInstance = this;

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

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

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

            if (instance == null)
            {
                return;
            }

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