/// <summary> /// Closes the car menu. /// </summary> public void closeCarMenu() { carMenu.SetActive(false); mainMenu.SetActive(true); canvas = "main"; soundEffectController.playStartEngine(); }
void Start() { //FOR SCREEN SHOOTING ! //PlayerPrefs.SetInt("Coins", 1000000); Application.targetFrameRate = 60; mode = "Main"; zoom = "mainMenu"; // Locate sound manager GameObject soundManager = GameObject.Find("SoundManager"); soundEffectController = (SoundEffectController)soundManager.GetComponent(typeof(SoundEffectController)); // Update the music & sound according to the PlayerPrefs UpdateMusicToggle(); UpdateSoundToggle(); // Play sound effect soundEffectController.playStartEngine(); //Game center set up KTGameCenter.SharedCenter().Authenticate(); //If its player first time playing, show tutorial. int showedTutorial = PlayerPrefs.GetInt("tutorial", 0); //If tutorial not opened before. if (showedTutorial == 0) { //open tutorial openTutorialScreen(); } }