예제 #1
0
 void Awake()
 {
     meuStatus               = GetComponent <Status> ();
     meuRigidbody            = GetComponent <Rigidbody> ();
     meuAnimator             = GetComponent <Animator> ();
     scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
 }
    void Start()
    {
        Jogador = GameObject.FindWithTag("Jogador");

        AleatorizarZumbi();
        statusInimigo           = GetComponent <Status>();
        scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
    }
예제 #3
0
    private void Start()
    {
        Jogador = GameObject.FindWithTag("Jogador");

        AleatorizarZumbi();
        scriptControlaInterface = FindObjectOfType <ControlaInterface>();
        pontuacao = FindObjectOfType <Pontuacao>();
        vidaAtual = statusInimigo.VidaInicial;
    }
예제 #4
0
 // Start is called before the first frame update
 void Start()
 {
     jogador = GameObject.FindWithTag("Jogador");
     this.spawnZumbi();
     movimento         = GetComponent <MovimentoBehaviour>();
     animacao          = GetComponent <AnimacaoBehaviour>();
     status            = GetComponent <Status>();
     controlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
 }
 // Use this for initialization
 void Start()
 {
     Jogador          = GameObject.FindWithTag("Jogador");
     animacaoInimigo  = GetComponent <AnimacaoPersonagem>();
     movimentaInimigo = GetComponent <MovimentoPersonagem>();
     AleatorizarZumbi();
     statusInimigo           = GetComponent <Status>();
     scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
 }
예제 #6
0
 private void Start()
 {
     jogador         = GameObject.FindWithTag(Tags.Jogador);
     controlaJogador = jogador.GetComponent <ControlaJogador>();
     movimentaZumbi  = GetComponent <MovimentaPersonagem>();
     animaZumbi      = GetComponent <AnimaPersonagem>();
     statusZumbi     = GetComponent <Status>();
     direcao         = transform.position;
     aleatorizarZumbi();
     scriptControlaInterface = GameObject.FindWithTag(Tags.Interface).GetComponent <ControlaInterface>();
 }
예제 #7
0
 private void Start()
 {
     jogador                 = GameObject.FindWithTag(Tags.Jogador).transform;
     agente                  = GetComponent <NavMeshAgent>();
     statusChefe             = GetComponent <Status>();
     agente.speed            = statusChefe.velocidade;
     animacaoChefe           = GetComponent <AnimaPersonagem>();
     movimentoChefe          = GetComponent <MovimentaPersonagem>();
     scriptControlaInterface = GameObject.FindWithTag(Tags.Interface).GetComponent <ControlaInterface>();
     sliderVida.maxValue     = statusChefe.vidaInicial;
     AtualizarInterface();
 }
예제 #8
0
    void Start()
    {
        _jogador = GameObject.FindGameObjectWithTag(Tags.JOGADOR);

        _movimentoPersonagem = GetComponent <MovimentoPersonagem>();
        _animacaoPersonagem  = GetComponent <AnimacaoPersonagem>();
        _status = GetComponent <Status>();

        _scriptControlainterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;

        AleatorizarZumbis();
    }
예제 #9
0
    // Use this for initialization
    void Start()
    {
        movimentoInimigo   = GetComponent <MovimentoPersonagem>();
        animacaoPersonagem = GetComponent <AnimacaoPersonagem>();
        statusInimigo      = GetComponent <Status>();

        scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;

        Player = GameObject.FindWithTag(Tags.Jogador).transform;

        randomizaZumbi();
    }
    // Use this for initialization
    void Start()
    {
        movimentaInimigo        = GetComponent <MovimentoPersonagem>();
        animacaoInimigo         = GetComponent <AnimacaoPersonagem>();
        statusInimigo           = GetComponent <Status>();
        scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;

        Jogador = GameObject.FindWithTag("Jogador");
        AleatorizarZumbis();

        posicaoAleatoria = AleatorizarPosicao();
        direcao          = posicaoAleatoria - transform.position;
    }
예제 #11
0
    new void Start()
    {
        jogador                 = GameObject.FindWithTag("Jogador");
        animacaoInimigo         = GetComponent <AnimacaoPersonagem>();
        movimentaInimigo        = GetComponent <MovimentoPersonagem>();
        statusInimigo           = GetComponent <Status>();
        scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;

        agente                = GetComponent <NavMeshAgent>();
        agente.speed          = statusInimigo.Velocidade;
        sliderVidaChefe       = transform.GetComponentInChildren <Slider>();
        sliderVidaChefe.value = sliderVidaChefe.maxValue = statusInimigo.VidaInicial;
        AtualizarInterface();
        scriptControlaInterface.AparecerTextoDoChefeCriado();
    }
예제 #12
0
    // Use this for initialization
    void Start()
    {
        jogador = GameObject.FindWithTag(Tags.Jogador);

        rb = GetComponent <Rigidbody>();


        controlaJogador     = jogador.GetComponent <ControlaJogador>();
        movimentoPersonagem = GetComponent <MovimentoPersonagem>();
        animacaoPersonagem  = GetComponent <AnimacaoPersonagem>();
        AleatorizarZumbi();
        status = GetComponent <Status>();

        tempoPosicao = Random.value * 6 + 4;

        controlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
    }
예제 #13
0
 private void Start()
 {
     controlaPontuacao = FindObjectOfType <ControlaPontuacao>() as ControlaPontuacao;
     controlaInterface = FindObjectOfType <ControlaInterface>() as ControlaInterface;
 }
예제 #14
0
 // Use this for initialization
 void Start()
 {
     controlaInterface = GameObject.FindObjectOfType <ControlaInterface>();
 }
예제 #15
0
 void Start()
 {
     tempoParaProximaGeracao = tempoEntreGeracoes;
     scriptControlaInteface  = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
     jogador = GameObject.FindWithTag("Jogador").transform;
 }
예제 #16
0
 private void Start()
 {
     tempoParaProximaGeracao = tempoEntreGeracoes;
     scriptControlaInterface = GameObject.FindWithTag(Tags.Interface).GetComponent <ControlaInterface>();
     jogador = GameObject.FindWithTag(Tags.Jogador).transform;
 }
예제 #17
0
 private void Start()
 {
     scriptControlaInteface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
     jogador = GameObject.FindWithTag(TAG_JOGADOR).transform;
     InvokeRepeating("GerarChefe", 0, this.tempoEntreGeracoes);
 }
예제 #18
0
 private void Start()
 {
     Jogador = GameObject.FindWithTag(TAG_JOGADOR);
     scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
 }
예제 #19
0
 void Start()
 {
     Jogador = GameObject.FindWithTag("Jogador");
     AleatorizarZumbi();
     scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
 }
예제 #20
0
 void Awake()
 {
     instancia = this;
 }
예제 #21
0
 private void Start()
 {
     _tempoParaProximaGeracao = tempoEntreGeracoes;
     _scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
     _jogador = GameObject.FindGameObjectWithTag(Tags.JOGADOR).transform;
 }
예제 #22
0
 private void Start()
 {
     controlaInterface = FindObjectOfType <ControlaInterface>() as ControlaInterface;
     this.pontos       = 0;
     this.numAcertos   = 0;
 }
 private void Start()
 {
     tempoProximaGeracao = tempoEntreGeracoes;
     controlaInterface   = GameObject.FindObjectOfType <ControlaInterface>();
     Jogador             = GameObject.FindWithTag(Tags.Jogador);
 }
예제 #24
0
 private void Start()
 {
     tempoGeracao      = tempoEntreGeracao;
     controlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface;
     jogador           = GameObject.FindWithTag("Jogador").transform;
 }
예제 #25
0
 public void AdicionarInterface(ControlaInterface interfaceJogo)
 {
     minhaInterfaceDeJogo = interfaceJogo;
 }