mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-28 20:43:03 +00:00
FIX THE ELSE IFS...
This commit is contained in:
parent
a28ba8328d
commit
9767842599
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue