dynamic loading of gate prefabs

This commit is contained in:
klemek
2020-12-19 20:02:15 +01:00
parent 205a663e07
commit 972a689d9c
61 changed files with 5685 additions and 7662 deletions
+6 -2
View File
@@ -84,10 +84,14 @@ namespace UntitledLogicGame.Workspace
private void OnDestroy()
{
foreach(var cable in Cables)
if(Cables != null)
{
Destroy(cable.gameObject);
foreach(var cable in Cables)
{
Destroy(cable.gameObject);
}
}
}
#endregion