private void Start() { aviao = FindObjectOfType <Aviao>(); controlaDificuldade = FindObjectOfType <ControlaDificuldade>(); geradorDeObstaculos = FindObjectOfType <GeradorDeObstaculos>(); gameOverInterface = FindObjectOfType <UIGameOver>(); gameInterface = FindObjectOfType <UIGameInterface>(); }
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>(); }
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; }
private void Start() { this.cenario = this.GetComponentsInChildren <Carrossel>(); this.GeradorDeobstaculos = this.GetComponentInChildren <GeradorDeObstaculos>(); this.aviao = this.GetComponentInChildren <Aviao>(); }
private void Start() { carrosels = this.GetComponentsInChildren <Carrosel>(); geradorDeObstaculo = this.GetComponentInChildren <GeradorDeObstaculos>(); aviao = GetComponent <Player>(); }