//icon 前移 public void IconAdvance(int toIndex, int beginIndex, int endIndex, bool anim) { List <GameObject> iconList = pageChildList; Location toLocation = iconList [toIndex].GetComponent <IconController> ().originLocation; for (int i = beginIndex; i <= endIndex; i++) { GameObject icon = iconList [i]; IconController iconController = icon.GetComponent <IconController> (); Location iconLocation = iconController.originLocation; if (iconController.regressLocation == null) { iconController.MoveToLocation(toLocation); } else { iconController.LocationRegress(); } toLocation = iconLocation; } }