update 1.2.0

This commit is contained in:
2025-07-20 10:05:55 +08:00
parent 2afbbf9be4
commit 5396d3e4b8
102 changed files with 93826 additions and 357 deletions
@@ -18,7 +18,7 @@ namespace EmeraldAI.Utility
SerializedProperty UseHitEffectProp;
//Bool
SerializedProperty HideSettingsFoldout, HealthFoldout, HitEffectFoldout, ImmortalProp;
SerializedProperty HideSettingsFoldout, HealthFoldout, HitEffectFoldout, ImmortalProp, AttachHitEffectsProp;
//Float
SerializedProperty HitEffectTimeoutSecondsProp;
@@ -46,6 +46,7 @@ namespace EmeraldAI.Utility
HealthFoldout = serializedObject.FindProperty("HealthFoldout");
HitEffectFoldout = serializedObject.FindProperty("HitEffectFoldout");
ImmortalProp = serializedObject.FindProperty("Immortal");
AttachHitEffectsProp = serializedObject.FindProperty("AttachHitEffects");
//Float
HitEffectTimeoutSecondsProp = serializedObject.FindProperty("HitEffectTimeoutSeconds");
@@ -171,6 +172,9 @@ namespace EmeraldAI.Utility
{
CustomEditorProperties.BeginIndent();
CustomEditorProperties.CustomPropertyField(AttachHitEffectsProp, "Attach Hit Effects", "Controls whether or not the Hit Effects will be attached to the AI when it's damaged.", true);
EditorGUILayout.Space();
CustomEditorProperties.CustomHelpLabelField("The hit effect that will appear when this AI receives damage.", true);
HitEffectsList.DoLayoutList();
EditorGUILayout.Space();