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

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

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

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

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

            if (instance == null)
            {
                return;
            }

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