Exemple #1
0
        public override void OnInspectorGUI()
        {
            RememberMoveable _target = (RememberMoveable)target;

            EditorGUILayout.BeginVertical("Button");
            EditorGUILayout.LabelField("Moveable", EditorStyles.boldLabel);
            _target.startState = (AC_OnOff)EditorGUILayout.EnumPopup("Moveable state on start:", _target.startState);
            EditorGUILayout.EndVertical();

            if (_target.GetComponent <Moveable>() == null)
            {
                EditorGUILayout.HelpBox("This script expects a Moveable component!", MessageType.Warning);
            }

            SharedGUI();
        }
        public override void OnInspectorGUI()
        {
            RememberMoveable _target = (RememberMoveable)target;

            CustomGUILayout.BeginVertical();
            EditorGUILayout.LabelField("Moveable", EditorStyles.boldLabel);
            _target.startState = (AC_OnOff)CustomGUILayout.EnumPopup("Moveable state on start:", _target.startState, "", "The interactive state of the object when the game begins");
            CustomGUILayout.EndVertical();

            if (_target.GetComponent <Moveable>() == null)
            {
                EditorGUILayout.HelpBox("This script expects a Moveable component!", MessageType.Warning);
            }

            SharedGUI();
        }