示例#1
0
 void Start()
 {
     //ResetHighScore();
     _highScore   = PlayerPrefs.GetInt(HIGHSCORE, _highScore);
     scoreManager = ScoreManager.GetInstance();
     scoreManager.ResetScore();
     soundManager    = GameObject.Find("SoundsManager").GetComponent <SoundsManager>();
     ballManager     = FindObjectOfType <BallManager>();
     gameOverManager = GetComponent <GameOverManager>();
     soundManager.PlayRickAndMortyTheme();
 }
示例#2
0
 private void Start()
 {
     soundsManager = GameObject.Find("SoundsManager").GetComponent <SoundsManager>();
     soundsManager.PlayRickAndMortyTheme();
 }