Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/BitStrap/Examples/ParticleControllerExample.cs
2026-02-21 16:45:37 +08:00

36 lines
608 B
C#

using UnityEngine;
namespace BitStrap.Examples
{
public class ParticleControllerExample : MonoBehaviour
{
public ParticleController particleController;
[Button]
public void Play()
{
if (Application.isPlaying)
{
particleController.Play();
}
else
{
Debug.LogWarning("In order to see ParticleController working, please enter Play mode.");
}
}
[Button]
public void Stop()
{
if (Application.isPlaying)
{
particleController.Stop();
}
else
{
Debug.LogWarning("In order to see ParticleController working, please enter Play mode.");
}
}
}
}