From 9767842599c85056d4cb376ca097031759ae9dd3 Mon Sep 17 00:00:00 2001 From: AstrlJelly Date: Sun, 12 May 2024 02:00:32 -0400 Subject: [PATCH] FIX THE ELSE IFS... --- Assets/Scripts/Minigames.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Minigames.cs b/Assets/Scripts/Minigames.cs index 76bd5d8e..0ee59f2c 100644 --- a/Assets/Scripts/Minigames.cs +++ b/Assets/Scripts/Minigames.cs @@ -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);