// Parameter Attributes are applied below in Resume() public void Stop(Rect startValue, Rect endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, int loopCount, out Rect currentValue) { m_Lerper.Stop( ); currentValue = m_LastValue; if (!m_Began) { currentValue = startValue; } }
// Parameter Attributes are applied below in Resume() public void Stop(Vector4 startValue, Vector4 endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, bool smooth, int loopCount, out Vector4 currentValue) { m_Lerper.Stop( ); currentValue = m_LastValue; if (!m_Began) { currentValue = startValue; } }
// Parameter Attributes are applied below in Resume() public void Stop(Quaternion startValue, Quaternion endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, bool smooth, int loopCount, out Quaternion currentValue) { m_Lerper.Stop( ); currentValue = m_LastValue; if (!m_Began) { currentValue = startValue; } }
// ================================================================================ // Input Sockets and Node Parameters // ================================================================================ // // Parameter Attributes are applied below in Resume() public void Begin(Rect startValue, Rect endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, int loopCount, out Rect currentValue) { m_Lerper.Set( time, loopType, loopDelay, false, loopCount ); m_Start = startValue; m_LastValue = startValue; m_End = endValue; m_Began = true; currentValue = startValue; }
// ================================================================================ // Input Sockets and Node Parameters // ================================================================================ // // Parameter Attributes are applied below in Resume() public void Begin(Vector4 startValue, Vector4 endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, bool smooth, int loopCount, out Vector4 currentValue) { m_Lerper.Set( time, loopType, loopDelay, smooth, loopCount ); m_Start = startValue; m_LastValue = startValue; m_End = endValue; m_Began = true; currentValue = startValue; }
// ================================================================================ // Input Sockets and Node Parameters // ================================================================================ // // Parameter Attributes are applied below in Resume() public void Begin(Color startValue, Color endValue, float time, uScript_Lerper.LoopType loopType, float loopDelay, int loopCount, out Color currentValue) { m_Lerper.Set( time, loopType, loopDelay, loopCount ); m_Start = startValue; m_LastValue = startValue; m_End = endValue; m_Began = true; currentValue = startValue; }