public void Show(string tipsStr, TextTipsType tipsType = TextTipsType.TextTips) { m_Trans.gameObject.SetActive(true); IsRun = true; m_Text.text = tipsStr; m_Icon.gameObject.SetActive(true); switch (tipsType) { case TextTipsType.TextTips: m_Icon.gameObject.SetActive(false); break; case TextTipsType.ExpTips: m_Icon.SetSprite("Icon", "ICON_I_Currency_05"); break; case TextTipsType.CoinTips: m_Icon.SetSprite("Icon", "ICON_I_Currency_01"); break; case TextTipsType.GoldBindingTips: m_Icon.SetSprite("Icon", "ICON_I_Currency_03"); break; case TextTipsType.GoldTips: m_Icon.SetSprite("Icon", "ICON_I_Currency_02"); break; } m_CanvasGroup.alpha = 1; m_Trans.DORestart(); }
public void ShowTips(string textTips, TextTipsType textTipsType = TextTipsType.TextTips) { TextTipsInfo info = new TextTipsInfo(); info.TipsType = textTipsType; info.TipsValue = textTips; m_TipsQueue.Enqueue(info); }