18 lines
275 B
C#
18 lines
275 B
C#
using UnityEngine;
|
|
|
|
public class AnimationSmokeParticle : MonoBehaviour
|
|
{
|
|
private ParticleSystem ps;
|
|
|
|
private void Awake()
|
|
{
|
|
if (!TryGetComponent(out ps))
|
|
Destroy(this);
|
|
}
|
|
|
|
private void OnEnable()
|
|
{
|
|
ps.Clear(true);
|
|
}
|
|
}
|