Ejemplo n.º 1
0
        // DISPLAY ACTION DESTROY OBJECT

        void DisplayBody(CGME.ActionDestroyObject action)
        {
            EditorGUI.indentLevel++;
            {
                EditorGUILayout.BeginHorizontal();
                action.Source = (CGME.SelectionSource)Display.EnumPopup(Target, "Object", action.Source);
                if (action.Source == CGME.SelectionSource.Type)
                {
                    action.SourceString = Display.TextField(Target, "Type", action.SourceString);
                }
                EditorGUILayout.EndHorizontal();
            }
            EditorGUI.indentLevel--;
        }
Ejemplo n.º 2
0
        public override void DrawAsInspector()
        {
            base.DrawAsInspector();

            CGME.ActionDestroyObject action_destroy = (action as CGME.ActionDestroyObject);

            EditorGUILayout.BeginHorizontal();
            action_destroy.Source = (CGME.SelectionSource)Display.EnumPopup(this, "Object", action_destroy.Source);
            if (action_destroy.Source == CGME.SelectionSource.Type)
            {
                action_destroy.SourceString = Display.TextField(this, "Type", action_destroy.SourceString);
            }
            EditorGUILayout.EndHorizontal();
        }