private void OnStart(PanelAnimatorTransition t) { if (this.activePanelTransition != null) { Debug.LogWarning("Starting panel transition " + t + " with transition " + this.activePanelTransition + " still running!"); this.activePanelTransition.CompleteEarly(); this.activePanelTransition = null; } var ts = TargetForTransition(t.panelTransition); if (ts == null) { Debug.LogWarning("No target for transition " + t.panelTransition + "!"); t.Cancel(); return; } this.activePanelTransition = t; if (this.stateParams.isReady) { this.stateParams.SetInt(m_targetStateProperty, ts.stateId); } else { m_pendingAnimatorStateUpdate = ts.stateId; } }
public Transition PreparePanelTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel) { // Debug.Log ("[" + Time.time + "] PreparePanelTransition " + t); var tr = new PanelAnimatorTransition(this, m_animatorTransitionLayer, t, onFrameDel); return(tr); }
private void OnCancel(PanelAnimatorTransition t) { if (this.activePanelTransition == t) { this.activePanelTransition = null; } }
private void OnCancel(PanelAnimatorTransition t) { // Debug.Log ("[" + Time.time + "] PanelAnimator::OnCancel " + t); if (this.activePanelTransition == t) { this.activePanelTransition = null; } }
public Transition PreparePanelTransition(PanelTransition t, OnTransitionFrameDelegate onFrameDel) { var tr = new PanelAnimatorTransition(this, m_animatorTransitionLayer, t, onFrameDel); return(tr); }