2021-12-29 08:10:48 +03:00

38 lines
742 B
C#

namespace GAP_ParticleSystemController{
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
[CustomEditor(typeof(ParticleSystemController))]
public class ParticleSystemControllerEditor : Editor
{
public override void OnInspectorGUI()
{
DrawDefaultInspector();
ParticleSystemController psCtrl = (ParticleSystemController)target;
if (GUILayout.Button ("Fill Lists"))
{
psCtrl.FillLists ();
}
if (GUILayout.Button ("Empty Lists"))
{
psCtrl.EmptyLists ();
}
if(GUILayout.Button("Apply"))
{
psCtrl.UpdateParticleSystem();
}
if(GUILayout.Button("Reset"))
{
psCtrl.ResetParticleSystem();
}
}
}
#endif
}