/// <summary> /// 设置暂停 /// 暂停animator和particleSystem(包括其孩子节点) /// </summary> /// <param name="gameObject"></param> /// <param name="cause"></param> public static void SetPuase(this GameObject self, object cause) { PauseUtil.SetPause(self, cause); }
/// <summary> /// 设置暂停 /// </summary> /// <param name="self"></param> /// <param name="cause"></param> public static void SetPause(this ParticleSystem self, object cause) { PauseUtil.SetPause(self, cause); }
/// <summary> /// 设置暂停 /// </summary> /// <param name="self"></param> /// <param name="cause"></param> public static void SetPause(this Animator self, object cause) { PauseUtil.SetPause(self, cause); }