using UnityEngine; using System.Collections; public class BuffEffect : MonoBehaviour { public float delayRemove = 1f; private float removeTime = -1f; public void Remove() { ParticleSystem[] psArr = GetComponentsInChildren(); for(int i=0; i= 0 && GameTime.time - removeTime > delayRemove) { Destroy(this.gameObject); } } }