// ============================ void ComposeHero() { PBConnect_composeHero.RESULT r = PBConnect_composeHero.CheckResult(_heroData.id); if (r == PBConnect_composeHero.RESULT.OK) { ComposeHeroRequest request = new ComposeHeroRequest(); request.api = new Model_ApiRequest().api; request.heroId = _heroData.id; (new PBConnect_composeHero()).Send(request, OnComposeHero); } else { } }
void ComposeHero() { int heroId = 1; PBConnect_composeHero.RESULT r = PBConnect_composeHero.CheckResult(heroId); if (r == PBConnect_composeHero.RESULT.OK) { ComposeHeroRequest request = new ComposeHeroRequest(); request.api = new Model_ApiRequest().api; request.heroId = heroId; (new PBConnect_composeHero()).Send(request, OnComposeHero); } else { EvolveHero(); } }