void Start() { score = 0; bestScore = PlayerPrefs.GetInt("Highscore"); GameObject.Find("Score").GetComponent<Text>().text = "Score: " + score.ToString(); }
private void Start() { // CreateGapPipes(6f, 1f, 1f); Bird.GetInstance().OnDied += Bird_OnDied; Bird.GetInstance().OnStartPlaying += Bird_OnStartPlaying; Score.Start(); }