12345678910111213141516171819202122232425262728293031323334 |
- using UnityEngine;
- using System.Collections;
- public class Effect : MonoBehaviour
- {
- #region 变量
- public ParticleSystem ParticleSystem
- {
- get
- {
- if (ParticleSystem_ == null)
- {
- ParticleSystem_ = GetComponent<ParticleSystem>();
- }
- return ParticleSystem_;
- }
- set { ParticleSystem = value; }
- }
- public ParticleSystem ParticleSystem_;
- #endregion
- private void Update()
- {
- if (!ParticleSystem.isPlaying)
- {
- ManaReso.Save(gameObject);
- }
- }
- }
|