void InstallAll() { for (int i = AllChildren.Count - 1; i >= 0; i--) { UIEvents ue = AllChildren [i].GetComponent <UIEvents> (); if (ue.step != ue.maxStep) { //Debug.Log (ue.Name +"<color=yellow>InstallAll将要执行到多少步????</color>" + ue.maxStep); ue.RechineDestination(true); ue.step = ue.maxStep; ue.RefreshSelef(ue.step); } } }
void UnInstallAll() { // Debug.Log ("parent>>>NAME::::"+AllParents.Count); for (int i = 0; i < AllParents.Count; i++) { UIEvents ue = AllParents [i].GetComponent <UIEvents> (); if (ue.step != 0) { //Debug.Log (ue.Name +"<color=red>UnInstallAll将要执行到多少步????</color>" + ue.maxStep); ue.RechineDestination(false); ue.step = 0; ue.RefreshSelef(ue.step); } } }