FIX THE ELSE IFS...

This commit is contained in:
AstrlJelly 2024-05-12 02:00:32 -04:00 committed by minenice55
parent a28ba8328d
commit 9767842599
1 changed files with 3 additions and 3 deletions

View File

@ -252,11 +252,11 @@ namespace HeavenStudio
Debug.LogWarning($"Property {param.propertyName} does not exist in the entity's dynamic data! Adding...");
if (param.parameter is EntityTypes.Integer intParam)
e.dynamicData.Add(param.propertyName, intParam.val);
if (param.parameter is EntityTypes.Float floatParam)
else if (param.parameter is EntityTypes.Float floatParam)
e.dynamicData.Add(param.propertyName, floatParam.val);
if (param.parameter is EntityTypes.Dropdown ddParam)
else if (param.parameter is EntityTypes.Dropdown ddParam)
e.dynamicData.Add(param.propertyName, new EntityTypes.DropdownObj(ddParam));
if (param.parameter is EntityTypes.Note noteParam)
else if (param.parameter is EntityTypes.Note noteParam)
e.dynamicData.Add(param.propertyName, noteParam.val);
else if (type.IsEnum)
e.dynamicData.Add(param.propertyName, (int)param.parameter);