コード例 #1
0
 public void Reset()
 {
     LoadContent();
     Camera.ResetCamera();
     CoinSystem.Instance.ResetCoin();
     ScoringSystem.ResetScore();
     MarioInfo.ResetTimer();
     MarioInfo.StopTimer();
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void Update()
 {
     if (Game1.State.Type == GameStates.GameOver)
     {
         MarioInfo.MarioLife[0] = 3;
         MarioInfo.UpdateHighestScore();
         CoinSystem.Instance.ResetCoin();
         ScoringSystem.ResetScore();
         MarioInfo.ClearTimer();
     }
 }
コード例 #4
0
    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);
    }
コード例 #5
0
 public void OnButtonDown() //Resets all Towers, not just those from a given table
 {
     genScript.ForceBuildNewTower();
     scoreScript.ResetScore();
 }