private void MoveCollToTop() { LeanTween.move(PanelColl.GetComponent <RectTransform>(), PosColl.anchoredPosition, .2f).setOnComplete(ActivateFbButton); }
private void Awake() { PanelFrag.GetComponent <CanvasGroup>().alpha = 0; PanelColl.GetComponent <CanvasGroup>().alpha = 0; FbButton.gameObject.SetActive(false); }
private void ShowFragments() { LeanTween.alphaCanvas(PanelFrag.GetComponent <CanvasGroup>(), 1, .5f).setOnComplete(MoveFragToTop); LeanTween.alphaCanvas(PanelColl.GetComponent <CanvasGroup>(), 1, .5f).setOnComplete(MoveCollToTop); }