void Start() { player = GameObject.FindWithTag("Player"); print(player); manager = player.GetComponent <coinManager>(); print(manager); aSource = player.GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { if (instance == null) { instance = this; } string thisslot = PlayerPrefs.GetString("ThisSlot"); score = PlayerPrefs.GetInt(thisslot + "coin"); }