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