Пример #1
0
 private void Start()
 {
     aviao = FindObjectOfType <Aviao>();
     controlaDificuldade = FindObjectOfType <ControlaDificuldade>();
     geradorDeObstaculos = FindObjectOfType <GeradorDeObstaculos>();
     gameOverInterface   = FindObjectOfType <UIGameOver>();
     gameInterface       = FindObjectOfType <UIGameInterface>();
 }
Пример #2
0
 private void Start()
 {
     this.diretor           = GameObject.FindObjectOfType <DiretorMultiplayer>();
     this.aviao             = this.GetComponentInChildren <Aviao>();
     this.minhaCamera       = this.GetComponentInChildren <Camera>();
     this.geradorObstaculos = this.GetComponentInChildren <GeradorDeObstaculos>();
     this.cenarios          = this.GetComponentsInChildren <Carrossel>();
 }
Пример #3
0
 private void Start()
 {
     this.cenario             = this.GetComponentsInChildren <Carrossel>();
     this.geradorDeObstaculos = this.GetComponentInChildren <GeradorDeObstaculos>();
     this.aviao          = this.GetComponentInChildren <Aviao>();
     this.efeitoFumaca   = this.GetComponentInChildren <ParticleSystem>();
     this.animacoesAviao = this.GetComponentsInChildren <Animator>();
     this.alturaJogador  = this.transform.position.y;
 }
Пример #4
0
 private void Start()
 {
     this.cenario             = this.GetComponentsInChildren <Carrossel>();
     this.GeradorDeobstaculos = this.GetComponentInChildren <GeradorDeObstaculos>();
     this.aviao = this.GetComponentInChildren <Aviao>();
 }
Пример #5
0
 private void Start()
 {
     carrosels          = this.GetComponentsInChildren <Carrosel>();
     geradorDeObstaculo = this.GetComponentInChildren <GeradorDeObstaculos>();
     aviao = GetComponent <Player>();
 }