示例#1
0
    protected void touch(InputTouchFinger finger)
    {
        Vector2 pos = finger.screenProportional;

        //Debug.Log(pos);

        if (pos.x > 0.9f && pos.y < 0.1f)
        {
            count++;
            //Debug.Log(name + " count at " + count);
        }

        if (count > 1)
        {
            //Debug.Log(name+" toggle !");
            if (h.isVisible())
            {
                h.hide();
            }
            else
            {
                h.show();
            }

            count = 0;
        }
    }
示例#2
0
    private void Awake()
    {
        h = (HelperVisibleUi)HelperVisible.createVisibility(this, VisibilityMode.UI);
        h.setTextLabel(VersionManager.getFormatedVersion());

        h.show();
    }