private void Awake() { shopPanel = FindObjectOfType <ShopPanelHandler>(); if (PlayerPrefs.HasKey("BestScore")) { bestScoreText.text = "Best: " + PlayerPrefs.GetInt("BestScore").ToString(); } }
private void Awake() { Instance = this; shopPanel = FindObjectOfType <ShopPanelHandler>(); }