我想在ParticleSystem.play序列中调用DoTween。像:
DOTween.Sequence()
.Append(_transform.DOScale(0, 0))
.Append(ParticleSystem.Play())我正在寻找转换的方法,并试图编写一个包装类,但什么也没发生。请帮帮我。
发布于 2022-02-22 15:59:25
我找到了解决办法)
private ParticleSystem _particleSystem;
DOTween.Sequence().
Append(DOTween.To(PlayParticle, 0, 1, _particleSystem.main.duration))
private void PlayParticle(float f)
{
if(!_particleSystem.isPlaying)
_particleSystem.Play();
}https://stackoverflow.com/questions/71217106
复制相似问题