private void Awake() { animacaoChefe = GetComponent <AnimacaoPersonagem>(); movimentoChefe = GetComponent <MovimentoPersonagem>(); agente = GetComponent <NavMeshAgent>(); statusChefe = GetComponent <Status>(); }
private void Start() { Time.timeScale = 1; meuMovimentoJogador = GetComponent <MovimentoJogador>(); animacaoJogador = GetComponent <AnimacaoPersonagem>(); statusJogador = GetComponent <Status>(); }
private void Awake() { animacaoInimigo = GetComponent <AnimacaoPersonagem>(); movimentaInimigo = GetComponent <MovimentoPersonagem>(); statusInimigo = GetComponent <Status>(); AleatorizarZumbi(); }
// Use this for initialization void Start() { Jogador = GameObject.FindWithTag("Jogador"); animacaoInimigo = GetComponent <AnimacaoPersonagem>(); movimentaInimigo = GetComponent <MovimentoPersonagem>(); statusInimigo = GetComponent <Status>(); }
// Use this for initialization void Start() { Jogador = GameObject.FindWithTag(Tags.Jogador); movimentaInimigo = GetComponent <MovimentoPersonagem>(); animacaoInimigo = GetComponent <AnimacaoPersonagem>(); statusInimigo = GetComponent <Status>(); AleatorizarZumbi(); }
private void Start() { jogador = GameObject.FindWithTag("Jogador").transform; agente = GetComponent <NavMeshAgent>(); statusChefe = GetComponent <Status>(); agente.speed = statusChefe.Velocidade; animacaoChefe = GetComponent <AnimacaoPersonagem>(); movimentoChefe = GetComponent <MovimentoPersonagem>(); }
// 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; }
void Start() { status = GetComponent <Status>(); Time.timeScale = 1; movimentarPersonagem = GetComponent <MovimentoPersonagem>(); animacaoPersonagem = GetComponent <AnimacaoPersonagem>(); }
//--------// //Métodos// private void Start() { if (aoSofrerDano == null) { aoSofrerDano = new ObterInteiro(); //verificação nula } meuMovimentoJogador = GetComponent <MovimentoJogador>(); animacaoJogador = GetComponent <AnimacaoPersonagem>(); statusJogador = GetComponent <Status>(); registroDeStatus = FindObjectOfType <ultimoEstadoJogador>(); }
private void Start() { jogador = GameObject.FindWithTag("Jogador").transform; agente = GetComponent <NavMeshAgent>(); statusChefe = GetComponent <Status>(); animacaoChefe = GetComponent <AnimacaoPersonagem>(); movimentoChefe = GetComponent <MovimentoPersonagem>(); agente.speed = statusChefe.Velocidade; SliderVidaChefe.maxValue = statusChefe.VidaInicial; AtualizarInterface(); }
private void Start() { jogador = GameObject.FindWithTag(Tags.Jogador).transform; controlaJogador = jogador.GetComponent <ControlaJogador>(); agente = GetComponent <NavMeshAgent>(); status = GetComponent <Status>(); animacao = GetComponent <AnimacaoPersonagem>(); movimento = GetComponent <MovimentoPersonagem>(); agente.speed = status.Velocidade; ImageSlider.color = Color.Lerp(VidaMinima, VidaMaxima, CalculaPorcentagemAtual()); }
// Start is called before the first frame update void Start() { rigidbodyInimigo = GetComponent <Rigidbody>(); jogador = GameObject.FindWithTag("Jogador").transform; Jogador = GameObject.FindWithTag("Jogador"); agente = GetComponent <NavMeshAgent>(); agente.speed = VelocidadeMovimento; animacaoInimigo = GetComponent <AnimacaoPersonagem>(); meuAudioSource = GetComponent <AudioSource>(); tocarSom = true; }
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(); }
void Start() { status = GetComponent <Status>(); agente = GetComponent <NavMeshAgent>(); agente.speed = status.Velocidade; jogador = GameObject.FindWithTag(Tags.Jogador).transform; animacaoChefe = GetComponent <AnimacaoPersonagem>(); movimentoChefe = GetComponent <MovimentoPersonagem>(); sliderVidaChefe = transform.GetComponentInChildren <Slider>(); sliderVidaChefe.value = sliderVidaChefe.maxValue = status.VidaInicial; AtualizarInterface(); }
// 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; }
// Use this for initialization void Start() { playerTransform = GameObject.FindWithTag(Tags.Jogador).transform; agentChefe = GetComponent <NavMeshAgent>(); statusChefe = GetComponent <Status>(); animacaoChefe = GetComponent <AnimacaoPersonagem>(); movimentaChefe = GetComponent <MovimentoPersonagem>(); animacaoChefe.Movimentar(agentChefe.velocity.magnitude); agentChefe.speed = statusChefe.Velocidade; sliderVidaChefe.maxValue = statusChefe.VidaInicial; atualizaSliderVida(); }
private void Start() { _jogador = GameObject.FindWithTag(Tags.JOGADOR).transform; _navMeshAgent = GetComponent <NavMeshAgent>(); _status = GetComponent <Status>(); _animacaoPersonagem = GetComponent <AnimacaoPersonagem>(); _movimentoPersonagem = GetComponent <MovimentoPersonagem>(); _navMeshAgent.speed = _status.GetVelocidade(); _vidaInicial = _status.GetVida(); sliderVida.maxValue = _vidaInicial; AtualizarInterface(); }
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; }
// Use this for initialization void Start() { transform.GetChild(1).gameObject.SetActive(false); Jogador = GameObject.FindWithTag("Jogador"); int geraTipoZumbi = Random.Range(1, 28); animacaoInimigo = GetComponent <AnimacaoPersonagem>(); movimentaInimigo = GetComponent <MovimentoPersonagem>(); statusInimigo = GetComponent <Status>(); if (geraTipoZumbi == 6 || geraTipoZumbi == 11) { geraTipoZumbi++; } transform.GetChild(geraTipoZumbi).gameObject.SetActive(true); }
void Awake() { _movimentoJogador = GetComponent <MovimentoJogador>(); _animacaoPersonagem = GetComponent <AnimacaoPersonagem>(); _status = GetComponent <Status>(); }
void Start() { animacaoJogador = GetComponent <AnimacaoPersonagem>(); movimentaJogador = GetComponent <MovimentoJogador>(); StatusJogador = GetComponent <Status>(); }
private void Awake() { meuMovimentoJogador = GetComponent <MovimentoJogador>(); animacaoJogador = GetComponent <AnimacaoPersonagem>(); }
// Start is called before the first frame update private void Start() { Time.timeScale = 1; rigidbodyJogador = GetComponent <Rigidbody>(); animacaoJogador = GetComponent <AnimacaoPersonagem>(); }
private void Awake() { animacaoInimigo = GetComponent <AnimacaoPersonagem>(); movimentaInimigo = GetComponent <MovimentoPersonagem>(); }
private void Start() { movimentoJogador = GetComponent <MovimentoJogador>(); animacaoJogador = GetComponent <AnimacaoPersonagem>(); status = GetComponent <Status>(); }