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