private void Start() { _sceneCalculator = FindObjectOfType <SceneCalculator>(); if (_sceneCalculator.HasBeatenGame) { GetComponent <SpriteRenderer>().enabled = true; } }
private void Start() { _sceneCalculator = FindObjectOfType <SceneCalculator>(); }
// Start is called before the first frame update void Start() { _sceneCalculator = FindObjectOfType <SceneCalculator>(); _sceneCalculator.JustBeatLevel(); }