public void readyForBattle() { _curRound = -1; _actionTime = 0; _isWin = false; _star = 0; _score = 0; _gold = 0; _paper = 0; SolaEngine engine = SolaEngine.getInstance(); PartnerMgr pMgr = (PartnerMgr)engine.getMgr(typeof(PartnerMgr)); _partners = new Dictionary <int, BattleHeroModel> (); Dictionary <int, HeroModel> partner = pMgr.getPartners(); foreach (int pos in partner.Keys) { HeroModel model = partner[pos]; BattleHeroModel bhModel = new BattleHeroModel(); bhModel.setModel(model, false, new Vector3(0, 0, 0)); bhModel.formatModel(); _partners.Add(pos, bhModel); bhModel.HERO_DIED += _onPartnerDeath; } MissionModel missionModel = _missionModel; _curBattleInfos = missionModel.getBattleInfos(); }