Esempio n. 1
0
        void Start()
        {
            _networkHandler = Instantiate(NetworkHandlerPrefab, transform);
            _networkHandler.Initialize(Config.ProgramQueryLimit);

            SearchComponent.Setup();
            SearchComponent.OnSearchStarted  += HandleSearchStarted;
            SearchComponent.OnSearchCanceled += HandleSearchCanceled;

            ProgramListComponent.Setup(Config.NearBottomThreshold);
            ProgramListComponent.OnReachEnd    += HandleOnReachEnd;
            ProgramListComponent.OnSelectDatum += HandleSelectDatum;

            ProgramDetailComponent.Setup();
            ProgramDetailComponent.OnBackPressed += HandleBackFromDetail;

            LoadDefault();
        }