public void TurnObjectRemoved(bool isSceneObject) { if (isSceneObject) { bottomTurnSceneObjectSpawned = bottomTurnSceneObjectSpawned.GetInfiniteObjectParent(); if (bottomTurnSceneObjectSpawned == null) { topTurnSceneObjectSpawned = null; } } else { bottomTurnPlatformObjectSpawned = bottomTurnPlatformObjectSpawned.GetInfiniteObjectParent(); if (bottomTurnPlatformObjectSpawned == null) { topTurnPlatformObjectSpawned = null; } } }