summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UICommon/XUIPressTips.cs
blob: 3bf1201746fe2eb0bfce74f7f110780d2f0ecca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using UnityEngine;
using UILib;
using XUtliPoolLib;

class XUIPressTips: XUIObject
{
    public string content;
    public Vector3 offset = new Vector3(84,-21);

    protected override void OnPress(bool isPressed)
    {
        if (string.IsNullOrEmpty(content)) return;
        IUiUtility entance = XInterfaceMgr.singleton.GetInterface<IUiUtility>(XCommon.singleton.XHash("IUiUtility"));
        if (entance != null) {
            entance.ShowPressToolTips(isPressed, content , transform.position, offset);
        }
    }
}