public override void OnShow() { base.OnShow(); AudioManager.instance.PlayBGM(ConstConfig.WndFightBg); UpdateSpeedText(); AddEvent(); fightManager.BeginFight(playerModel.fightRoles, aiModel.fightRoles, playerRoleGos, aiRoleGos); RolesToFightPos(); TimeManager.Regist((id) => { fightManager.StartFight(); }, 1.2f, 0, 1); for (int i = 0; i < 9; i++) { RoleBase pRole = playerModel.fightRoles[i]; RoleBase aRole = aiModel.fightRoles[i]; UIListener.GetUIListener(playerRoleGos[i]).param = pRole; UIListener.GetUIListener(aiRoleGos[i]).param = aRole; } }