public void ExitButtonPressed() { Debug.Log("Exiting..."); // if exit button is pressed and main menu is loaded, quit the game. // otherwise quit the song and return to main menu. if (mainButtonsCanvasGroup.alpha == 1f) { Debug.Log("quitting game"); Application.Quit(); } else { Debug.Log("first erase all spawned cell blocks, unload song from data, then show main menu - also change title header"); MC.getDataJockey().UnloadSong(); MC.getBlockManager().CleanUpCellBlocks(); ShowMainMenu(); UnloadExistingSongs(); TitleHeader.text = "cloudsynth"; } }
void OnMouseEnter() { m_Renderer.material = Resources.Load <Material>("Materials/Blocks/" + MC.getBlockManager().getCurrentlySelectedBlock().getMaterial()); }