Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created December 14, 2017 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/8ca221e21365f8930cdcdaee38e4cc2e to your computer and use it in GitHub Desktop.
Save tsubaki/8ca221e21365f8930cdcdaee38e4cc2e to your computer and use it in GitHub Desktop.
パーティクルの生成
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;
}
}
@tsubaki
Copy link
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