예제 #1
0
        private void DrawElement(SerializedProperty element)
        {
            var reaction = element.objectReferenceValue as MReaction;

            if (reaction)
            {
                EditorGUILayout.BeginVertical(StyleBlue);
                EditorGUILayout.HelpBox(reaction.description, MessageType.None);
                EditorGUILayout.EndVertical();

                MTools.DrawScriptableObject(reaction, false, 3);
            }
        }
예제 #2
0
        private void DrawAIStates()
        {
            EditorGUILayout.BeginVertical(EditorStyles.helpBox);
            EditorGUILayout.BeginHorizontal();
            MTools.DrawScriptableObject(currentState, false);
            MalbersEditor.DrawDebugIcon(debug);
            EditorGUILayout.EndHorizontal();
            // EditorGUILayout.PropertyField(remainInState);
            EditorGUILayout.PropertyField(TransitionCoolDown);
            EditorGUILayout.PropertyField(RemoveAIOnDeath);



            EditorGUILayout.EndVertical();
        }