public override void OnEnter() { if (Fsm == null) { return; } GameObject go = Fsm.GetOwnerDefaultTarget(sequenceToPlay); if (!go) { return; } USSequencer sequence = go.GetComponent <USSequencer>(); if (!go) { return; } sequence.Pause(); Finish(); }
public override void FireEvent() { if (!sequence) { Debug.LogWarning("No sequence for USPauseSequenceEvent : " + name, this); } if (sequence) { sequence.Pause(); } }