private void SpawnChild() { SubdividerElement spawnedChild = Instantiate(prefab); spawnedChild.Initialize(subdividerElement.CurrentLevel + 1, subdividerElement.Name); }
private void SpawnChild() { SubdividerElement spawnedChild = Instantiate(Prefab); spawnedChild.Initialize(CurrentLevel + 1, ObjectName); }