18 lines
265 BLFS
C#
18 lines
265 BLFS
C#
|
|
|
|
using UnityEngine;
|
|
|
|
public class Particle: MonoBehaviour {
|
|
|
|
|
|
private void Start()
|
|
{
|
|
// Get the ParticleSystem component
|
|
ParticleSystem particleSystem = GetComponent<ParticleSystem>();
|
|
|
|
// Play the particle system
|
|
particleSystem.Play();
|
|
|
|
|
|
}
|
|
} |