示例#1
0
    /// <summary> 显示中间提示信息</summary>
    public static void ShowCenterInfo(string content, Color color, float timer = 1.5f)
    {
        UITipsView tips = UIPool.Instance.PopUITipPanel();

        if (tips != null)
        {
            tips.gameObject.SetActive(true);
            tips.ShowCenterTips(content, timer, color);
            tips.SizeTipSize(16);
        }
    }
示例#2
0
    public static void ShowCenterTipsBig(string content, Color color, float timer = 1.5f)
    {
        UITipsView tips = UIPool.Instance.PopUITipPanel();

        if (tips != null)
        {
            CenterTips = tips;
            tips.CacheTrans.localPosition = new Vector3(0, 200, 0);
            tips.gameObject.SetActive(true);
            tips.ShowCenterTips(content, timer, color);
            tips.SizeTipSize(18, 32);
        }
    }