Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ParticlePlaying : MonoBehaviour {
private bool isPlaying;
[SerializeField] ParticleSystem particle;
public void Switch ()
if (isPlaying) {
particle.Play (true);
} else {
particle.Stop (true, ParticleSystemStopBehavior.StopEmitting);
isPlaying = !isPlaying;

This comment has been minimized.

Copy link
Owner Author

tsubaki commented Dec 14, 2017

animation 65

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.