FIX THE ELSE IFS...

This commit is contained in:
AstrlJelly 2024-05-12 02:00:32 -04:00 committed by minenice55
parent 91316941f8
commit 29843818c9

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);