public static void RunReplayEffect(GameObject instanceObj, bool bClearOldParticle) { NsEffectManager.SetActiveRecursively(instanceObj, true); NcEffectBehaviour[] componentsInChildren = instanceObj.GetComponentsInChildren <NcEffectBehaviour>(true); NcEffectBehaviour[] array = componentsInChildren; for (int i = 0; i < array.Length; i++) { NcEffectBehaviour ncEffectBehaviour = array[i]; ncEffectBehaviour.OnResetReplayStage(bClearOldParticle); } }