public override void OnInspectorGUI()
    {
        GUI.changed = false;

        UIModalInputStackPop obj = target as UIModalInputStackPop;

        obj.player = EditorGUILayout.IntField("Player", obj.player);

        obj.escape = M8.EditorExt.InputBinder.GUISelectInputAction("Escape", obj.escape);

        if (GUI.changed)
        {
            EditorUtility.SetDirty(target);
        }
    }
    public override void OnInspectorGUI()
    {
        UIModalInputStackPop obj = target as UIModalInputStackPop;

        EditorGUI.BeginChangeCheck();

        var player = EditorGUILayout.IntField("Player", obj.player);

        var escape = M8.EditorExt.InputBinder.GUISelectInputAction("Escape", obj.escape);

        if (EditorGUI.EndChangeCheck())
        {
            Undo.RecordObject(target, "Change Input Stack Pop Key");

            obj.player = player;
            obj.escape = escape;
        }
    }