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

View file

@ -252,11 +252,11 @@ namespace HeavenStudio
Debug.LogWarning($"Property {param.propertyName} does not exist in the entity's dynamic data! Adding..."); Debug.LogWarning($"Property {param.propertyName} does not exist in the entity's dynamic data! Adding...");
if (param.parameter is EntityTypes.Integer intParam) if (param.parameter is EntityTypes.Integer intParam)
e.dynamicData.Add(param.propertyName, intParam.val); 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); 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)); 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); e.dynamicData.Add(param.propertyName, noteParam.val);
else if (type.IsEnum) else if (type.IsEnum)
e.dynamicData.Add(param.propertyName, (int)param.parameter); e.dynamicData.Add(param.propertyName, (int)param.parameter);