Esempio n. 1
0
 public void ShowImgAddOn()
 {
     if (Vector3.zero == m_ImgAddOn.transform.localScale)
     {
         TweenPlayer.PlayTween(m_ImgAddOn.gameObject);
     }
 }
Esempio n. 2
0
 public void OnImgAddOnPlayComplete()
 {
     m_ImgAddOn.Stop();
     if (m_ImgAddOn.Amount == Vector3.zero)
     {
         m_ImgAddOn.Amount = Vector3.one;
         m_ImgAddOn.Delay  = 0;
     }
     else
     {
         m_ImgAddOn.Amount = Vector3.zero;
         m_ImgAddOn.Delay  = 3;
         TweenPlayer.PlayTween(m_ImgAddOn.gameObject);
     }
 }
 private void PlayAppearAnim()
 {
     iTween.Stop(gameObject);
     if (IsScale)
     {
         transform.localScale = new Vector3(0.01f, 0.01f, 0.01f);
     }
     if (IsFade)
     {
         var ui = GetComponent <MaskableGraphic>();
         if (null != ui)
         {
             var color = ui.color;
             color.a  = 0;
             ui.color = color;
         }
     }
     TweenPlayer.PlayTween(gameObject, OnFinish);
 }