Exemple #1
0
 public void ShowTip(TipsInfo info)
 {
     CancelInvoke();
     tipTxt.text = info.tipStr;
     closeTween.Stop();
     closeTween.ForceTo(0);
     closeTween.gameObject.SetActive(true);
     mask.SetActive(info.openMask);
     if (info.autoClose)
     {
         if (info.duration > 0)
         {
             Invoke("CloseTip", info.duration);
         }
         else
         {
             CloseTip();
         }
     }
 }