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;
 }
Exemplo n.º 2
0
 public static void Start()
 {
     //ResetHighscore();
     BirdControl.GetInstance().OnDied += Bird_OnDied;
 }
Exemplo n.º 3
0
 // Start is called before the first frame update
 private void Start()
 {
     BirdControl.GetInstance().OnStartedPlaying += Bird_OnStartedPlaying;
 }