Skip to content

Commit

Permalink
Update DictionaryCustom.cs
Browse files Browse the repository at this point in the history
Co-Authored-By: VirtueSky <126542083+VirtueSky@users.noreply.github.com>
  • Loading branch information
DucNV2000 and VirtueSky committed Aug 2, 2024
1 parent a9a7099 commit e4fc351
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions VirtueSky/DataType/DictionaryCustom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public void OnBeforeSerialize()

private void UpdateDict()
{
#if UNITY_EDITOR
if (dictionaryData is { Count: > 0 })
{
if (m_dict is { Count: > 0 })
Expand All @@ -44,12 +43,10 @@ private void UpdateDict()
}
}
}
#endif
}

private void UpdateList()
{
#if UNITY_EDITOR
dictionaryData.Clear();
if (m_dict is { Count: > 0 })
{
Expand All @@ -58,7 +55,6 @@ private void UpdateList()
dictionaryData.Add(new DictionaryCustomData<TKey, TValue>(kvp.Key, kvp.Value));
}
}
#endif
}

public void Add(object key, object value)
Expand Down

0 comments on commit e4fc351

Please sign in to comment.