using CinemaDirector.Helpers; using System.Collections.Generic; using UnityEngine; namespace CinemaDirector { /// /// Enable the Actor related to this event. /// [CutsceneItemAttribute("Particle System", "Pause", CutsceneItemGenre.ActorItem)] public class PauseParticleSystemEvent : CinemaActorEvent { /// /// Trigger this event and pause the particle system component. /// /// The actor to be triggered. public override void Trigger(GameObject actor) { if (actor != null) { ParticleSystem ps = actor.GetComponent(); if (ps != null) { ps.Pause(); } } } } }