粒子系统 (Particle System)组件通过在场景中生成和动画化大量小型 2D 图像来模拟流体实体,如液体、云和火焰。
粒子系统的操作主要由以下的模块构成,你所看到的千变万化风格的特效,除了导入的贴图外,它们的变化很大程度上依赖于这些模块和和模块中的属性:(player、Teleporting、TeleportPointer、TeleportArea)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticleCtrl : MonoBehaviour
{
public GameObject Intro;
public bool start;
public float startY;
public float stopY;
public List<GameObject> Rockets;