示例#1
0
 void Update()
 {
     if (Input.touchCount > 1)
     {
         TipsPropertyUI.HideMe();
     }
 }
示例#2
0
    void OnPress(bool press)
    {
        string   desc    = "";
        string   typestr = string.Format("C_{0}", propType);
        Constant type    = (Constant)Enum.Parse(typeof(Constant), typestr);

        GlobalValue.Get(type, out desc);
        StringTool.UTF8String(ref desc);
        if (press)
        {
            TipsPropertyUI.ShowMe(desc, transform.position);
        }
        else
        {
            TipsPropertyUI.HideMe();
        }
    }