private void CheckPartHitMainMenu(Drumpart partHit) { string partName = partHit.transform.parent.name; switch (partName) { case "DKFYB_Snare_drum": // Rhythm mode gc = GameContext.RhythmMode; sqManager.Init(); closeMainMenu(); break; case "DKFYB_Hi-hat": // Free mode gc = GameContext.FreeMode; closeMainMenu(); break; case "DKFYB_Crash": // Memory mode gc = GameContext.MemoryMode; closeMainMenu(); sqManager.Init(); break; case "DKFYB_Ride": // Settings break; case "DKFYB_Floor_tom": // Exit Application.Quit(); break; } }