| | |
| | | else |
| | | { |
| | | sceneHero[i].SetActive(true); |
| | | sceneHero[i].Display(teamHero.guid, i, flyFrom >= 0, true); |
| | | sceneHero[i].Display(teamHero.guid, i, flyFrom >= 0, flyFrom != -2 ? true : false); |
| | | //按scenePosImgs 顺序排序对应位置 |
| | | sceneHero[i].transform.position = scenePosImgs[i].transform.position; |
| | | sceneHero[i].transform.localScale = Vector3.one; |
| | |
| | | { |
| | | //下阵 |
| | | 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); |
| | | } |
| | | } |
| | | |