// Start is called before the first frame update void Awake() { timer = FindObjectOfType <UI_Time>(); player = FindObjectOfType <Player>(); spawner = FindObjectOfType <EnemySpawner>(); backgroundRenderer = background.GetComponent <SpriteRenderer>(); BackgroundChange(); }
// Start is called before the first frame update void Awake() { timer = FindObjectOfType <UI_Time>(); }
// Start is called before the first frame update void Start() { timer = FindObjectOfType <UI_Time>(); player = FindObjectOfType <Player>(); spawner = FindObjectOfType <EnemySpawner>(); }