diff --git a/VirtueSky/DataType/DictionaryCustom.cs b/VirtueSky/DataType/DictionaryCustom.cs index b5b3826a..b16e3aeb 100644 --- a/VirtueSky/DataType/DictionaryCustom.cs +++ b/VirtueSky/DataType/DictionaryCustom.cs @@ -28,7 +28,6 @@ public void OnBeforeSerialize() private void UpdateDict() { -#if UNITY_EDITOR if (dictionaryData is { Count: > 0 }) { if (m_dict is { Count: > 0 }) @@ -44,12 +43,10 @@ private void UpdateDict() } } } -#endif } private void UpdateList() { -#if UNITY_EDITOR dictionaryData.Clear(); if (m_dict is { Count: > 0 }) { @@ -58,7 +55,6 @@ private void UpdateList() dictionaryData.Add(new DictionaryCustomData(kvp.Key, kvp.Value)); } } -#endif } public void Add(object key, object value)