using UnityEngine; using System.Collections; public class UnscaleTimeEffect : MonoBehaviour { // Use this for initialization void Start () { ParticleSystem[] pss = GetComponentsInChildren(true); for (int i = 0; i < pss.Length; i++) { UnscaleTimePartical utp = pss[i].gameObject.GetComponent(); if (utp == null) utp = pss[i].gameObject.AddComponent(); } Animator[] animators = GetComponentsInChildren(true); for (int i = 0; i < animators.Length; i++) { animators[i].updateMode = AnimatorUpdateMode.UnscaledTime; } } }