using Godot; using System.Collections.Generic; using Rokojori.Extensions; namespace Rokojori { [Tool][GlobalClass, Icon("res://addons/rokojori_action_library/Icons/PlayParticles.svg")] public partial class ParticleVFXControl:Action { public enum ControlType { Play } [Export] public ParticleVFX particleVFX; [Export] public ControlType controlType = ControlType.Play; protected override void _OnTrigger() { if ( ControlType.Play == controlType ) { particleVFX?.Play(); } } } }