private void OnGUI() { if (GUI.Button(FxmReplayDemo.GetButtonRect(0), "Replay")) { this.Replay(false); } if (GUI.Button(FxmReplayDemo.GetButtonRect(1), "Replay(ClearParticle)")) { this.Replay(true); } }
public static void SetActiveRecursively(GameObject target, bool bActive) { int num = target.transform.childCount - 1; while (0 <= num) { if (num < target.transform.childCount) { FxmReplayDemo.SetActiveRecursively(target.transform.GetChild(num).gameObject, bActive); } num--; } target.SetActive(bActive); }