private void Start() { ScoreText = transform.Find("ScoreText").GetComponent <Text>(); HighscoreText = transform.Find("HighscoreText").GetComponent <Text>(); Hide(); BirdControl.GetInstance().OnDied += Bird_OnDied; transform.GetComponent <RectTransform>().anchoredPosition = Vector2.zero; }
public static void Start() { //ResetHighscore(); BirdControl.GetInstance().OnDied += Bird_OnDied; }
// Start is called before the first frame update private void Start() { BirdControl.GetInstance().OnStartedPlaying += Bird_OnStartedPlaying; }