public void Start() { this.aviao = GameObject.FindObjectOfType <AviaoSinglePlayer>(); this.pontuacao = GameObject.FindObjectOfType <PontuacaoSinglePlayer>(); this.interfaceGameOver = GameObject.FindObjectOfType <InterfaceGameOver>(); this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>(); }
private void Start() { ControleDeDificuldade = FindObjectOfType <ControleDeDificuldade>(); AudioSource = GetComponent <AudioSource>(); Score = FindObjectOfType <Score>(); Player = FindObjectOfType <Player>(); }
protected virtual void Start() { this.pontucoes = GameObject.FindObjectsOfType <Pontuacao>(); this.interfaceGameOver = GameObject.FindObjectOfType <InterfaceGameOver>(); this.avioes = GameObject.FindObjectsOfType <Aviao>(); this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>(); }
private void Start() { this.aviao = GameObject.FindObjectOfType <Aviao>(); this.pontuacao = GameObject.FindObjectOfType <Pontuacao>(); this.maoPiscando = GameObject.FindObjectOfType <MaoPiscando>(); this.interfaceGameOver = GameObject.FindObjectOfType <InterfaceGameOver>(); this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>(); }
protected virtual void Start() { this.aviao = GameObject.FindObjectOfType <Aviao> (); this.pontuacao = GameObject.FindObjectOfType <Pontuacao> (); this.interfaceGameOver = GameObject.FindObjectOfType <InterfaceGameOver> (); this.dificuldade = GameObject.FindObjectOfType <ControleDeDificuldade> (); this.animacaoTutorial = GameObject.FindGameObjectWithTag(LiteralStrings.CanvasTutorial); this.jogador = FindObjectOfType <ControlaJogador>(); this.geradoresDeObstaculos = FindObjectsOfType <GeradorDeObstaculos>(); }
private void Start() { this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>(); this.transform.Translate(Vector3.up * Random.Range(-variacaoEmY, variacaoEmY)); // Reduzir espaço entre os obstaculos ao longo do tempo: this.obstaculoCima.transform.Translate(Vector3.down * controleDeDificuldade.Dificuldade); this.obstaculoBaixo.transform.Translate(Vector3.up * controleDeDificuldade.Dificuldade); }
private void Start() { this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>(); }
private void Start() { Diretor = FindObjectOfType <Diretor>(); ControleDeDificuldade = FindObjectOfType <ControleDeDificuldade>(); }
// Start is called before the first frame update void Start() { controleDeDificuldade = FindObjectOfType <ControleDeDificuldade>(); }