private void PlayerReturnedToStart(Snake playerSnake) { this.playerSnake.Visible = false; // Add one again to player snakes. This allows new player snakes to increase the total. When the initial player is spawned that subtracts one. Managers.GameState.ExtraSnakes += 1; // Remove any frog now RemoveFrog(); // Does a player egg exist? If so, make it hatch Egg egg = GetEgg(Side.Player); if (egg != null) { this.eggManager.EggHatched(egg); // is this necessary? egg.Die(); return; } // Time to go to the next level. Managers.GameState.Level += 1; //Managers.SceneManager.LoadScene(SerpentConsts.SceneNames.Game); GameSceneController gsc = Managers.SceneManager.CurrentController as GameSceneController; if (gsc == null) { // should never happen return; } gsc.TransitionToLevel(Managers.GameState.Level); }