public void GoNextLevel() { IemUI.CreateFadeoutBanner(player, "level complete"); gamelevels[level].End(); IemUI.CreateRightFadeout(player, "shots fired " + gamelevels[level].accuracy.ShotsFired + "\nshots hit " + gamelevels[level].accuracy.ShotsHit + "\naccuracy " + gamelevels[level].accuracy.GetAccuracyAsString()); //me.Puts("level = " + level); //me.Puts("gamelevels.Count = " + gamelevels.Count); // level is indexed at 1 when game is in progress, 0 is pregame if (level == (gamelevels.Count - 1)) { //me.Puts("settig game complete"); gsm?.ChangeState(TargetPracticeStateManager.GameComplete.Instance); } else { // me.Puts("going to next level"); gsm?.ChangeState(TargetPracticeStateManager.GameRunning.Instance); } }