private void Start() { //PlayerPrefs.DeleteAll(); score = FindObjectOfType <Score>(); if (score == null) { Debug.LogError("Score is null"); } stats = FindObjectOfType <GamestatsManager>(); if (stats == null) { Debug.LogError("GamestatsManager is null"); } }
private void Start() { stats = FindObjectOfType <GamestatsManager>(); }
private void Start() { rigidbody = GetComponent <Rigidbody2D>(); score = FindObjectOfType <Score>(); stats = FindObjectOfType <GamestatsManager>(); }