Skip to content

Commit 32dccf2

Browse files
committed
Fix call to obsolete DestroyObject.
1 parent 26fbb4c commit 32dccf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Examples/Scripts/RandomInstancing.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void OnDestroy()
4242
for (int i = 0; i < m_Instances.Count; ++i)
4343
{
4444
if (m_Instances[i])
45-
DestroyObject(m_Instances[i].gameObject);
45+
Destroy(m_Instances[i].gameObject);
4646
}
4747
m_Instances.Clear();
4848
}

0 commit comments

Comments
 (0)