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