public void Show(string mes, FloatTextDele _dele) { this.gameObject.SetActive(true); text.text = mes; Tweener tweener = transform.GetComponent <RectTransform>().DOLocalMove(Vector3.zero, 0.2f); tweener.SetEase(Ease.InOutQuart); tweener.onComplete = delegate { StartCoroutine(Anim()); }; dele = _dele; }
public void ShowFloatText(string mes, FloatTextDele dele) { floatText.Show(mes, dele); }