Unity烟花demo

示例:

Unity烟花demo

 按钮控制脚本

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FireworksController : MonoBehaviour
{
    public ParticleSystem fireworksParticle;
    // Start is called before the first frame update
    void Start()
    {
        fireworksParticle.Stop();
    }

  public void TriggerFireworks()
    {
        fireworksParticle.Play();
    }
}

猜你喜欢

转载自blog.csdn.net/2402_83809362/article/details/143222975