/// <summary>
 /// 敬请期待
 /// </summary>
 public void Expect()
 {
     if (at == null)
     {
         at = expect_img.GetComponent <AlphaTween>();
     }
     at.ResetToBeginning();
     at.PlayForward();
 }
示例#2
0
 public virtual void Show(float time)
 {
     if (alphaTween)
     {
         if (time == 0f)
         {
             alphaTween.SetAlpha(1f);
         }
         else
         {
             alphaTween.playbackTime = time;
             alphaTween.PlayForward(true);
         }
     }
     else if (canvasGroup)
     {
         canvasGroup.alpha = 1f;
     }
 }
示例#3
0
 /// <summary>
 /// 警示
 /// </summary>
 public void Caution(Image _imag, bool Caution)
 {
     if (Caution)
     {
         if (NumeNUll == null)
         {
             NumeNUll = _imag.GetComponent <AlphaTween>();
         }
         NumeNUll.ResetToBeginning();
         NumeNUll.PlayForward();
     }
     else
     {
         if (Special == null)
         {
             Special = _imag.GetComponent <AlphaTween>();
         }
         Special.ResetToBeginning();
         Special.PlayForward();
     }
 }