using UnityEngine; using System.Collections; public class EffectDelayDestroy : DelayDestroy { public string path; override protected void FixedUpdate () { if(GameTime.time - startTime > delay) { EffectUtil.Recycle(path, this.gameObject); } } }