void OnScaleOut() { if (!m_Active) { return; } UIEffectTools.ScaleTo(gameObject, m_Duration, 1, OnScaleIn); }
public void Stop(float scale) { if (!m_Active) { return; } m_Active = false; UIEffectTools.ScaleStop(gameObject); UIEffectTools.ScaleTo(gameObject, 0, scale, null); }
void OnScaleIn() { if (!m_Active) { return; } m_LoopCount++; //非循环播放,只执行一次 if (m_Repeat || (!m_Repeat && m_LoopCount == 1)) { UIEffectTools.ScaleTo(gameObject, m_Duration, m_ToScale, OnScaleOut); } }