Exemplo n.º 1
0
 private void OnStartTips(WaveTipComponent tipcon, string content, float value)
 {
     tipcon.SetData(content, value, () =>
     {
         tipcon.Visible = false;
         this.m_unUseTip.Enqueue(tipcon);
     });
 }
Exemplo n.º 2
0
        private void ShowTips(string content, Vector3 postion, float value)
        {
            WaveTipComponent tipCon = getUseTips();

            if (tipCon == null)
            {
                return;
            }
            Vector2 localPos;
            Vector2 screenPos = RectTransformUtility.WorldToScreenPoint(CameraManager.Instance.UICamera, postion);

            RectTransformUtility.ScreenPointToLocalPointInRectangle(m_grid.Widget, screenPos, CameraManager.Instance.UICamera, out localPos);
            tipCon.Widget.anchoredPosition = localPos;
            OnStartTips(tipCon, content, value);
            tipCon.Visible = true;
        }