void Start() { if (PlayerPrefs.GetInt("quitGame", 0) == 1) { UpdateGold(); } flyGold = (FlyGold)UnityEngine.Object.FindObjectOfType(typeof(FlyGold)); }
private void Awake() { instance = this; }