Skip to content

Commit

Permalink
Update ScrollingObjectCollectionContainer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWang-MS committed Feb 23, 2022
1 parent 116d6e9 commit 22e626f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ private void Awake()

public void UpdateChildren()
{
ItemRenderersMap = new Dictionary<GameObject, Renderer[]>();
ItemCollidersMap = new Dictionary<GameObject, Collider[]>();
OnTransformChildrenChanged();
}

private void OnTransformChildrenChanged()
{
ItemRenderersMap = new Dictionary<GameObject, Renderer[]>();
ItemCollidersMap = new Dictionary<GameObject, Collider[]>();
foreach (var child in Children)
{
UpdateComponentMap(child, ItemRenderersMap);
Expand Down

0 comments on commit 22e626f

Please sign in to comment.