private void Reset() { if (cubeController != null) { cubeController.Reset(); cubeController = null; } if (elementsController != null) { elementsController.Reset(); elementsController = null; } if (playerModel != null) { playerModel.Reset(); playerModel = null; } if (gameStateModel != null) { gameStateModel.Reset(); gameStateModel = null; } if (gameStateModel != null) { gameStateModel.Reset(); gameStateModel = null; } RemoveEventListeners(); }