Пример #1
0
        private void onCatalogSuccess(CatalogModel obj)
        {
            DIContainer.GetByID(0).RegisterInstance <CatalogModel>(obj);

            invs = ServiceResolver.GetForCurrentPlatform <InventoryServiceBase>();
            invs.GetPlayerInventory(onPlayerInventorySuccess, onPlayerInventoryFailed);
        }
Пример #2
0
 private void onConfigSucces(PlatformConfig obj)
 {
     cs = ServiceResolver.GetForCurrentPlatform <CatalogServiceBase>();
     cs.GetCatalog(PlatformConfig.Instance.CatalogID, onCatalogSuccess, onCatalogFailed);
 }
Пример #3
0
 private void onLoginSuccess()
 {
     confService = ServiceResolver.GetForCurrentPlatform <ConfigServiceBase>();
     confService.GetPlatformConfig(onConfigSucces, onConfigFailed);
 }
Пример #4
0
 private void Start()
 {
     ls = ServiceResolver.GetForCurrentPlatform <LoginServiceBase>();
     ls.Login(true, onLoginSuccess, onLoginFailed);
 }
Пример #5
0
        private void onLoginSuccess()
        {
            ConfigServiceBase cs = ServiceResolver.GetForCurrentPlatform <ConfigServiceBase>();

            cs.GetPlatformConfig(onConfigFetched, onGetConfigFailed);
        }
Пример #6
0
 public void Start()
 {
     DIContainer.RegisterContainer(0);
     ls = ServiceResolver.GetForCurrentPlatform <LoginServiceBase>();
     ls.Login(true, onLoginSuccess, onLoginFailed);
 }