//public static string[] flagsOldKey;


        public override void SetBody()
        {
            // base.SetBody();
            GUI.enabled = Lilly.scene.name == "SceneMaidManagement";
            if (!GUI.enabled)
            {
                GUILayout.Label("메이드 관리에서 사용 SceneMaidManagement");
                return;
            }

            GUILayout.Label(MyUtill.GetMaidFullName(maid));

            type = GUILayout.SelectionGrid(type, types, 2);

            if (GUI.changed)
            {
                GUIFlagMaid.SetingFlag(maid);
            }

            action();

            GUI.enabled = true;
        }
        private static void SetBodyFlag()
        {
            GUILayout.Label("플레그 추가");

            GUILayout.BeginHorizontal();
            flagName   = GUILayout.TextField(flagName);
            flagValueS = GUILayout.TextField(flagValue.ToString("D"));
            if (GUI.changed)
            {
                int.TryParse(flagValueS, out flagValue);
            }
            if (GUILayout.Button("Set", guio[GUILayoutOptionUtill.Type.Width, 40]))
            {
                if (!string.IsNullOrEmpty(flagName))
                {
                    maid.status.SetFlag(flagName, flagValue);
                    GUIFlagMaid.SetingFlag(maid);
                }
            }
            GUILayout.EndHorizontal();



            GUILayout.Label("edit seleted flag ");

            GUILayout.BeginHorizontal();

            if (GUILayout.Button("add"))//, guio[GUILayoutOptionUtill.Type.Width, 20]
            {
                maid.status.AddFlag(flagsKey[selectedFlag], 1);
                GUIFlagMaid.SetingFlag(maid);
            }
            if (GUILayout.Button("set 0"))//, guio[GUILayoutOptionUtill.Type.Width, 20]
            {
                maid.status.SetFlag(flagsKey[selectedFlag], 0);
                GUIFlagMaid.SetingFlag(maid);
            }
            if (GUILayout.Button("del"))//, guio[GUILayoutOptionUtill.Type.Width, 20]
            {
                maid.status.RemoveFlag(flagsKey[selectedFlag]);
                GUIFlagMaid.SetingFlag(maid);
            }

            GUILayout.EndHorizontal();



            GUILayout.Label("보유한 플레그 목록 " + flags.Count);

            selectedFlag = GUILayout.SelectionGrid(selectedFlag, flagsStats, 1);

            GUILayout.Label("경고! 모든 플레그 삭제");
            GUILayout.BeginHorizontal();
            GUILayout.Label("경고! 모든 플레그 삭제=>");
            GUILayout.FlexibleSpace();
            if (GUILayout.Button("del", guio[GUILayoutOptionUtill.Type.Width, 40]))
            {
                maid.status.RemoveFlagAll();
                GUIFlagMaid.SetingFlag(maid);
            }
            GUILayout.EndHorizontal();
        }