コード例 #1
0
 private void UpdateGUI()
 {
     GUI.score.text     = GameParams.GetScore().ToString();
     GUI.lastScore.text = GameParams.GetLastScore().ToString();
     GUI.topScore.text  = GameParams.GetTopScore().ToString();
     GUI.coins.text     = GameParams.GetCoins().ToString();
 }
コード例 #2
0
ファイル: Car.cs プロジェクト: devnem0y/InternshipGame
 private void Landing(string infoText, int score)
 {
     gm.GetGUI().infoDrop.SetActive(true);
     gm.GetGUI().drop.text = infoText;
     gm.GetGUI().valDrop.text = "+" + score.ToString();
     Debug.Log(infoText + " : " + score.ToString());
     GameParams.AddScore(score);
     GameParams.AddLastScore(score);
     GameParams.SetScore(GameParams.GetScore() * curValFlip);
     GameParams.SetLastScore(GameParams.GetScore());
     am.PlayLanding();
     curValFlip = 0;
     StartCoroutine(HideInfoDrop(1f));
     _backFlip = false;
 }