Skip to content

Instantly share code, notes, and snippets.

Embed
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;
}
}
@tsubaki

This comment has been minimized.

Copy link
Owner Author

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.