// Очистка змінних для початку нової гри public void StartNewGame() { level = new Level(graphics, Content); level.Load(Content); level.CreateLevel(); ScrollX = 0; hero.rect = hero.rectStartUP; hero.AmountProfile = ListAmountProfile[heroChoice]; if (isTwoPlayers) { hero2.rect = hero2.rectStartUP; hero2.AmountProfile = ListAmountProfile[heroChoice2]; } isPaused = false; isStartNewGame = true; }