コード例 #1
0
 private void Init(AppUpdateManagerInternal appUpdateManagerInternal)
 {
     _appUpdateManagerInternal = appUpdateManagerInternal;
     _stateUpdateListener      = new AppUpdateStateListener();
     _stateUpdateListener.OnStateUpdateEvent += OnStateUpdateReceived;
     StartListeningForUpdates();
 }
コード例 #2
0
        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);
        }