private void Init(AppUpdateManagerInternal appUpdateManagerInternal)
 {
     _appUpdateManagerInternal = appUpdateManagerInternal;
     _stateUpdateListener      = new AppUpdateStateListener();
     _stateUpdateListener.OnStateUpdateEvent += OnStateUpdateReceived;
     StartListeningForUpdates();
 }
        public static AppUpdateHandler CreateInScene(AppUpdateManagerInternal appUpdateManagerInternal)
        {
            var componentHolder = new GameObject();

            componentHolder.name = "AppUpdateHandler";
            DontDestroyOnLoad(componentHolder);

            var instance = componentHolder.AddComponent <AppUpdateHandler>();

            instance.Init(appUpdateManagerInternal);

            return(instance);
        }