void OnNewSize() { // Call the function to create the new rubiks cube _rubiksCube?.CreateCubes(_rubkisCubeSize); // Hide itself _setNewSizeButton.gameObject.SetActive(false); SetActiveUIScramble(true); }