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; }
private void Start() { Jogador = GameObject.FindWithTag("Jogador"); AleatorizarZumbi(); scriptControlaInterface = FindObjectOfType <ControlaInterface>(); pontuacao = FindObjectOfType <Pontuacao>(); vidaAtual = statusInimigo.VidaInicial; }
// 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; }
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>(); }
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(); }
void Start() { _jogador = GameObject.FindGameObjectWithTag(Tags.JOGADOR); _movimentoPersonagem = GetComponent <MovimentoPersonagem>(); _animacaoPersonagem = GetComponent <AnimacaoPersonagem>(); _status = GetComponent <Status>(); _scriptControlainterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; AleatorizarZumbis(); }
// 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; }
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(); }
// 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; }
private void Start() { controlaPontuacao = FindObjectOfType <ControlaPontuacao>() as ControlaPontuacao; controlaInterface = FindObjectOfType <ControlaInterface>() as ControlaInterface; }
// Use this for initialization void Start() { controlaInterface = GameObject.FindObjectOfType <ControlaInterface>(); }
void Start() { tempoParaProximaGeracao = tempoEntreGeracoes; scriptControlaInteface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; jogador = GameObject.FindWithTag("Jogador").transform; }
private void Start() { tempoParaProximaGeracao = tempoEntreGeracoes; scriptControlaInterface = GameObject.FindWithTag(Tags.Interface).GetComponent <ControlaInterface>(); jogador = GameObject.FindWithTag(Tags.Jogador).transform; }
private void Start() { scriptControlaInteface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; jogador = GameObject.FindWithTag(TAG_JOGADOR).transform; InvokeRepeating("GerarChefe", 0, this.tempoEntreGeracoes); }
private void Start() { Jogador = GameObject.FindWithTag(TAG_JOGADOR); scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; }
void Start() { Jogador = GameObject.FindWithTag("Jogador"); AleatorizarZumbi(); scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; }
void Awake() { instancia = this; }
private void Start() { _tempoParaProximaGeracao = tempoEntreGeracoes; _scriptControlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; _jogador = GameObject.FindGameObjectWithTag(Tags.JOGADOR).transform; }
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); }
private void Start() { tempoGeracao = tempoEntreGeracao; controlaInterface = GameObject.FindObjectOfType(typeof(ControlaInterface)) as ControlaInterface; jogador = GameObject.FindWithTag("Jogador").transform; }
public void AdicionarInterface(ControlaInterface interfaceJogo) { minhaInterfaceDeJogo = interfaceJogo; }