Ejemplo n.º 1
0
 // 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();
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Awake()
 {
     timer = FindObjectOfType <UI_Time>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     timer   = FindObjectOfType <UI_Time>();
     player  = FindObjectOfType <Player>();
     spawner = FindObjectOfType <EnemySpawner>();
 }