EffectDelayDestroy.cs 263 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System.Collections;
  3. public class EffectDelayDestroy : DelayDestroy
  4. {
  5. public string path;
  6. override protected void FixedUpdate ()
  7. {
  8. if(GameTime.time - startTime > delay)
  9. {
  10. EffectUtil.Recycle(path, this.gameObject);
  11. }
  12. }
  13. }