public void ProcessFromOnGUI() { if (ActiveTransition != null) { ActiveTransition.ProcessTransitionFromOnGUI(); } }
public void Revert() { Fired = false; if (ActiveTransition != null) { ActiveTransition.RevertTransition(); if (KeyframeCamera) { KeyframeCamera.enabled = false; } if (AudioListener) { AudioListener.enabled = false; } } else { if (KeyframeCamera) { KeyframeCamera.enabled = false; } if (AudioListener) { AudioListener.enabled = false; } } ActiveTransition = null; #if DEBUG_OBSERVER Debug.Log("Revert " + KeyframeCamera); #endif }
public void BeginTransition(NavGrid.Transition transition) { transitionDriver.EndTransition(); base.smi.GoTo(base.smi.sm.moving); ActiveTransition transition2 = new ActiveTransition(transition, defaultSpeed); transitionDriver.BeginTransition(this, transition2); }
public void End() { Fired = false; if (ActiveTransition != null) { ActiveTransition.TransitionComplete(); } ActiveTransition = null; #if DEBUG_OBSERVER Debug.Log("End " + KeyframeCamera); #endif }
public void Process(float time) { if (transitionType == Shared.TypeOfTransition.Cut) { return; } if (time > TransitionDuration) { return; } if (ActiveTransition != null) { ActiveTransition.ProcessEventFromNoneOnGUI(time, TransitionDuration); } Fired = true; #if DEBUG_OBSERVER Debug.Log("Process " + KeyframeCamera); #endif }