| | |
| | | { |
| | | //下阵 |
| | | team.RemoveHero(pos1); |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -1, Vector3.zero); |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -2, Vector3.zero); |
| | | } |
| | | else if (pos1 == pos2) |
| | | { |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -1, Vector3.zero); |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1 }, -2, Vector3.zero); |
| | | } |
| | | else |
| | | { |
| | | //通知刷新 |
| | | team.SwapPosition(pos1, pos2); |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1, pos2 }, -1, Vector3.zero); |
| | | HeroUIManager.Instance.NotifyOnTeamPosChangeEvent(new List<int>() { pos1, pos2 }, -2, Vector3.zero); |
| | | } |
| | | } |
| | | |