Example #1
0
        private void onCatalogSuccess(CatalogModel obj)
        {
            DIContainer.GetByID(0).RegisterInstance <CatalogModel>(obj);

            invs = ServiceResolver.GetForCurrentPlatform <InventoryServiceBase>();
            invs.GetPlayerInventory(onPlayerInventorySuccess, onPlayerInventoryFailed);
        }
 private void onConfigSucces(PlatformConfig obj)
 {
     cs = ServiceResolver.GetForCurrentPlatform <CatalogServiceBase>();
     cs.GetCatalog(PlatformConfig.Instance.CatalogID, onCatalogSuccess, onCatalogFailed);
 }
 private void onLoginSuccess()
 {
     confService = ServiceResolver.GetForCurrentPlatform <ConfigServiceBase>();
     confService.GetPlatformConfig(onConfigSucces, onConfigFailed);
 }
 private void Start()
 {
     ls = ServiceResolver.GetForCurrentPlatform <LoginServiceBase>();
     ls.Login(true, onLoginSuccess, onLoginFailed);
 }
        private void onLoginSuccess()
        {
            ConfigServiceBase cs = ServiceResolver.GetForCurrentPlatform <ConfigServiceBase>();

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