Effect.cs 392 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. using System.Collections;
  3. public class Effect : Regist
  4. {
  5. #region 变量
  6. public ParticleSystem ParticleSystem;
  7. #endregion
  8. public void Awake()
  9. {
  10. ParticleSystem = GetComponent<ParticleSystem>();
  11. }
  12. private void Update()
  13. {
  14. if (!ParticleSystem.isPlaying)
  15. {
  16. ManaReso.Save(gameObject);
  17. }
  18. }
  19. }