/// <summary> /// 系统提示 /// </summary> /// <param name="sentence"></param> public void TipsShow(string sentence) { parent.SetAsLastSibling(); var go = GameObject.Instantiate(tips); existedTips.Add(go); go.SetParent(parent, false); var text = go.GetComponent <Text>(); text.text = sentence; go.gameObject.SetActive(true); TimerMgr.getMe().CreateTimer(TimeCallBack, 3); text.DOFade(0, 3); go.DOMove(Vector3.up * posY, 3).SetEase(Ease.InOutCubic).SetRelative(); }