public void passToGame() { GameData.scores = new int[GameData.players]; CCSimpleAudioEngine.SharedEngine.StopEffect(mid); CCSimpleAudioEngine.SharedEngine.PlayEffect("sounds/coin"); var newScene = new CCScene(Window); var silla = new IntroLayer(); newScene.AddChild(silla); Window.DefaultDirector.ReplaceScene(newScene); }
private void ReturnToMenu() { CCSimpleAudioEngine.SharedEngine.StopAllEffects(); CCSimpleAudioEngine.SharedEngine.PlayEffect("sounds/chooce"); var newScene = new CCScene(Window); var menu = new IntroLayer(); newScene.AddChild(menu); Window.DefaultDirector.ReplaceScene(newScene); }