public void Remove(object obj) { if (obj is PlayerStart) { playerStart.Destroy(); } if (obj is GameObject) { gameObjects.Remove(obj as GameObject); } if (obj is ILevelAsset) { levelAssets.Remove(obj as ILevelAsset); } if (obj is IExit) { levelExits.Remove(obj as IExit); } if (obj is IUpdate) { updateables.Remove(obj as IUpdate); } }