Example #1
0
 public void Start()
 {
     this.aviao                 = GameObject.FindObjectOfType <AviaoSinglePlayer>();
     this.pontuacao             = GameObject.FindObjectOfType <PontuacaoSinglePlayer>();
     this.interfaceGameOver     = GameObject.FindObjectOfType <InterfaceGameOver>();
     this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>();
 }
Example #2
0
 private void Start()
 {
     ControleDeDificuldade = FindObjectOfType <ControleDeDificuldade>();
     AudioSource           = GetComponent <AudioSource>();
     Score  = FindObjectOfType <Score>();
     Player = FindObjectOfType <Player>();
 }
Example #3
0
 protected virtual void Start()
 {
     this.pontucoes             = GameObject.FindObjectsOfType <Pontuacao>();
     this.interfaceGameOver     = GameObject.FindObjectOfType <InterfaceGameOver>();
     this.avioes                = GameObject.FindObjectsOfType <Aviao>();
     this.controleDeDificuldade = GameObject.FindObjectOfType <ControleDeDificuldade>();
 }
Example #4
0
 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>();
 }
Example #5
0
 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>();
 }
Example #6
0
    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);
    }
Example #7
0
 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>();
 }