Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        EasyFingerGestues t = (EasyFingerGestues)target;

        t.showProperties = HTEditorToolKit.DrawTitleFoldOut(t.showProperties, "Finger Gestues properties");
        if (t.showProperties)
        {
            t.enable = EditorGUILayout.Toggle("Enable Gestues", t.enable);

            HTEditorToolKit.DrawSeparatorLine();
            EditorGUILayout.Separator();

            t.InputAreaCenter = EditorGUILayout.Vector2Field("Area Center", t.InputAreaCenter);
            t.InputAreaSize   = EditorGUILayout.Vector2Field("Area radius", t.InputAreaSize);

            EditorGUILayout.Separator();
        }
    }
Exemplo n.º 2
0
 ///----------------------------------------------------------------------------------
 /// <summary>
 /// mono 行为
 /// </summary>
 ///----------------------------------------------------------------------------------
 void Start()
 {
     instance = this;
     InstallGestureRecognizer();
 }