12345678910111213141516171819202122232425 |
- using UnityEngine;
- using System.Collections;
- public class Effect : Regist
- {
- #region 变量
- public ParticleSystem ParticleSystem;
- #endregion
- public void Awake()
- {
- ParticleSystem = GetComponent<ParticleSystem>();
- }
- private void Update()
- {
- if (!ParticleSystem.isPlaying)
- {
- ManaReso.Save(gameObject);
- }
- }
- }
|