| | |
| | | var guidList = HeroUIManager.Instance.SelectRecommend(); |
| | | var team = TeamManager.Instance.GetTeam(HeroUIManager.Instance.selectTeamType); |
| | | team.RemoveAllHeroes(); |
| | | for (int i = 0; i < guidList.Count; i++) |
| | | if (NewBieCenter.Instance.inGuiding && NewBieCenter.Instance.currentGuide == HeroUIManager.Instance.onekeyGuideID) |
| | | { |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[i]), i, true); |
| | | //第二个强制排在5号位 |
| | | if (guidList.Count > 1) |
| | | { |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[1]), 4, true); |
| | | guidList.RemoveAt(1); |
| | | } |
| | | |
| | | for (int i = 0; i < guidList.Count; i++) |
| | | { |
| | | int index = i; |
| | | if (i >= 4) |
| | | { |
| | | index = i + 1; |
| | | } |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[i]), index, true); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | for (int i = 0; i < guidList.Count; i++) |
| | | { |
| | | team.AddHero(HeroManager.Instance.GetHero(guidList[i]), i, true); |
| | | } |
| | | } |
| | | |
| | | TeamChangeEvent(new List<int>() { 0, 1, 2, 3, 4, 5 }, -1, Vector3.zero); |
| | | |