5 namespace droid.Runtime.Utilities.Misc.Extensions {
6 [RequireComponent(typeof(ParticleSystem))]
8 ParticleSystem _particle_system;
11 void Start() { this._particle_system = this.GetComponent<ParticleSystem>(); }
15 if (Input.GetKey(KeyCode.Space)) {
16 if (this._particle_system.isPlaying) {
20 this._particle_system.Play(
true);
23 this._particle_system.Stop(
true);