public static void updataMusicState(TeamType team) { bool flag = false; SysBattleSceneVo dataById = BaseDataMgr.instance.GetDataById <SysBattleSceneVo>(LevelManager.CurLevelId); string[] array = new string[] { "Play_Amb_1v1_map16", "Play_Amb_2v2_map11", "Play_Amb_2v2_map13", "Play_Amb_2v2_map14", "Play_Amb_5v5_map17" }; string text = dataById.scene_map_id; text = text.ToLower(); for (int i = 0; i < array.Length; i++) { if (array[i].Contains(text)) { if (array[i].Contains("1v1")) { text = "1v1"; } else if (array[i].Contains("5v5")) { text = "3v3"; } break; } } if (text.Contains("3v3")) { flag = true; } if (flag) { if (TeamManager.MyTeam == team) { if (team == TeamType.LM && AchieveData.TowerDestrouByLm == 1) { BgmPlayer.OnFirstTowerBePullbyUS(); } else if (team == TeamType.BL && AchieveData.TowerDestroyByBl == 1) { BgmPlayer.OnFirstTowerBePullbyUS(); } } if (AchieveData.TowerDestroyByBl == 2 || AchieveData.TowerDestrouByLm == 2) { BgmPlayer.OnFstOr2ndTowerBePullDown(); } } else if (AchieveData.TowerDestrouByLm == 1 || AchieveData.TowerDestroyByBl == 1) { BgmPlayer.OnFstOr2ndTowerBePullDown(); } }