Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     gameObject.GetComponent <Text>().text = StaticGameInfo.getLastGameScore().ToString();
 }
Example #2
0
 public override void onDeath()
 {
     StaticGameInfo.setLastGameScore(ScoreManager.Instance.getScore());
     SceneManager.LoadScene(3);
 }
Example #3
0
 public void LoadSceneAndClearLastScore(int level)
 {
     StaticGameInfo.setLastGameScore(0);
     LoadScene(level);
 }