public class particleManager : MonoBehaviour {
public ParticleSystem explosion;
public bool emittingParticles = false;
public void Update () {
if (emittingParticles == true) {
explosion.enableEmission = true;
}
}
}
void OnCollisionEnter2D (Collision2D col) {
if (col.gameObject.tag == "enemyPlanet") {
particles.emittingParticles = true;
}
}
我在这里的右边线?如何实例化粒子?