Exemple #1
0
 public void ShowOrHideBtns()
 {
     Init();
     if (this.gameObject.activeInHierarchy)
     {
         RectTrans.DOSizeDelta(new Vector2(205f, 0f), 0.7f).OnComplete(() => this.gameObject.SetActive(false));
         Cg.DOFade(0, 0.8f);
     }
     else
     {
         this.gameObject.SetActive(true);
         RectTrans.DOSizeDelta(new Vector2(205f, 930f), 0.7f);
         Cg.DOFade(1, 0.8f);
     }
 }