Exemplo n.º 1
0
 protected override void OnStart(Tweener tweener)
 {
     if (tweener == null)
     {
         m_Value = m_TargetValue;
     }
     else
     {
         tweener.TweenTo(this, "m_Value", m_TargetValue, Duration, Easing.Sine.EaseOut);
     }
 }
Exemplo n.º 2
0
 protected override void OnStart(Tweener tweener)
 {
     if (tweener == null)
     {
         m_Alpha = m_TargetAlpha;
     }
     else
     {
         tweener.TweenTo(this, "m_Alpha", m_TargetAlpha, Duration, Easing.Sine.EaseOut);
     }
 }
Exemplo n.º 3
0
        public void Start()
        {
            if (m_Tweener.IsTweening == true)
            {
                return;
            }

            if (m_Widget.Visible == true)
            {
                m_Tweener.TweenTo(this, "m_Scale", m_TargetScale, m_Duration, Easing.Sine.EaseOut);
            }

            OnStart(m_Widget.Visible ? m_Tweener : null);
        }