Ejemplo n.º 1
0
    private void OnGUI()
    {
        string[] evtArray = GlobalEventManager.GetAllEvents();
        GUILayout.Label("All Events");
        Color c = GUI.color;

        GUI.color = Color.blue;
        foreach (var s in evtArray)
        {
            GUILayout.Label(s);
        }

        foreach (var s in gestureOperations)
        {
            s.OnGUI();
        }

        Vector3?tp = GetTouchPoint();

        GUILayout.Label("TouchPoint:" + (tp == null ? "0,0,0" : tp.Value.ToString()));
        if (tp != null)
        {
            GUI.Label(new Rect(tp.Value.x, Screen.height - tp.Value.y, 100, 100), "Touch Here");
        }
        GUI.color = c;
    }