public void Reset() { LoadContent(); Camera.ResetCamera(); CoinSystem.Instance.ResetCoin(); ScoringSystem.ResetScore(); MarioInfo.ResetTimer(); MarioInfo.StopTimer(); }
public TitleDisplayPanel() { CoinSystem.Instance.ResetCoin(); ScoringSystem.ResetScore(); this.titleImg = BackgroundSpriteFactory.Instance.CreateTitleImgSprite(); instructionText = TextSpriteFactory.Instance.CreateNormalFontTextSpriteSprite(); instructionText.text = pressEnter; highestScoreText = TextSpriteFactory.Instance.CreateNormalFontTextSpriteSprite(); highestScoreText.text = "Top Score - " + fixText(" " + MarioInfo.HighestScore, scoreLength); }
public void Update() { if (Game1.State.Type == GameStates.GameOver) { MarioInfo.MarioLife[0] = 3; MarioInfo.UpdateHighestScore(); CoinSystem.Instance.ResetCoin(); ScoringSystem.ResetScore(); MarioInfo.ClearTimer(); } }
public void StartGame() { _isInGame = true; Player.SetActive(true); Score.SetActive(true); Health.SetActive(true); EnemySpawner.Enabled = true; PickupSpawner.Enabled = true; CameraMovement.enabled = true; Scoring.Playing = true; BackgroundGenerator.Enabled = true; Scoring.ResetScore(); //Hide menu UI Title.SetActive(false); PlayButton.SetActive(false); ExitButton.SetActive(false); }
public void OnButtonDown() //Resets all Towers, not just those from a given table { genScript.ForceBuildNewTower(); scoreScript.ResetScore(); }