Exemplo n.º 1
0
        private static IEnumerator StartTween(KButtonShrinkable btn)
        {
            float elapsedTime = 0;

            while (elapsedTime < __duration)
            {
                elapsedTime += __ignoreTimeScale ? Time.unscaledDeltaTime : Time.deltaTime;
                float precentage = Mathf.Clamp01(elapsedTime / __duration);
                btn.DoTween(precentage);
                yield return(null);
            }

            btn.ClearShrink(btn.m_direction == ZOOM_IN);
        }
Exemplo n.º 2
0
 static public int ShrinkEnabled(IntPtr l)
 {
     try {
         mg.org.KUI.KButtonShrinkable self = (mg.org.KUI.KButtonShrinkable)checkSelf(l);
         System.Boolean a1;
         checkType(l, 2, out a1);
         self.ShrinkEnabled(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }