コード例 #1
0
 void Update()
 {
     if (tween.tweening)
     {
         tween.Loop();
     }
 }
コード例 #2
0
 public IEnumerator FadeIn(float fadeTime)
 {
     pulser.enabled      = false;
     button.interactable = true;
     alphaTween.Tween(0, 1, fadeTime);
     positionTween.Tween(rectTransform.anchoredPosition + new Vector2(0, -20), rectTransform.anchoredPosition, fadeTime, new AnimationCurve(new Keyframe[] { new Keyframe(0, 0, 3.14f, 3.14f), new Keyframe(1, 1, 0, 0) }));
     while (alphaTween.tweening || positionTween.tweening)
     {
         if (alphaTween.tweening)
         {
             alphaTween.Loop();
         }
         if (positionTween.tweening)
         {
             positionTween.Loop();
         }
         yield return(null);
     }
     pulser.enabled = true;
 }