void Awake() { Utils.Logger.Info("PlayerIdentityGeneral Settings awakening..."); s_RuntimeSettingsInstance = this; Application.quitting += Quit; DontDestroyOnLoad(s_RuntimeSettingsInstance); }
void ExitPlayMode() { if (m_IsPlaying) { m_IsPlaying = false; StopPlayerIdentitySDK(); DeInitPlayerIdentitySDK(); s_RuntimeSettingsInstance = null; } }
void EnterPlayMode() { if (!m_IsPlaying) { s_RuntimeSettingsInstance = this; InitPlayerIdentitySDK(); StartPlayerIdentitySDK(); m_IsPlaying = true; } }
internal static void AttemptStartPlayerIdentitySDKOnBeforeSplashScreen() { #if !UNITY_EDITOR PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance; if (instance == null || !instance.InitManagerOnStart) { return; } instance.StartPlayerIdentitySDK(); #endif }
internal static void AttemptInitializePlayerIdentitySDKOnLoad() { #if !UNITY_EDITOR PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance; if (instance == null || !instance.InitManagerOnStart) { return; } instance.InitPlayerIdentitySDK(); #endif }
static void Quit() { PlayerIdentityGeneralSettings instance = PlayerIdentityGeneralSettings.Instance; if (instance == null) { return; } instance.OnDisable(); instance.OnDestroy(); }