void Start() { vidaPlayerScript = FindObjectOfType <vidaPlayer>(); // CHAMANDO O SCRIPT "vidaPlayer" fbPlayerScript = FindObjectOfType <feedbackPlayer>(); kbScript = GetComponent <KnockBack>(); speedEnemy = GetComponent <NavMeshAgent>().speed; }
private void Start() { //Invocar Scripts bossScript = FindObjectOfType <Boss>(); vidaPlayerScript = FindObjectOfType <vidaPlayer>(); fbPlayerScript = FindObjectOfType <feedbackPlayer>(); kbScript = GetComponent <KnockBack>(); }
void Start() { //Pegar posição do Player e Boss posicaoDoJogador = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); posicaoDoBoss = GameObject.FindGameObjectWithTag("Boss").GetComponent <Transform>(); //Invocar Scripts vidaPlayerScript = FindObjectOfType <vidaPlayer>(); fbPlayerScript = FindObjectOfType <feedbackPlayer>(); kbScript = GetComponent <KnockBack>(); vidaDoBoss = FindObjectOfType <vidaBoss>(); scriptMovimentacao = FindObjectOfType <Movimentacao>(); scriptDash = FindObjectOfType <dashMove>(); }
void Start() { vidaPlayerScript = FindObjectOfType <vidaPlayer>(); // CHAMANDO O SCRIPT "vidaPlayer" fbPlayerScript = FindObjectOfType <feedbackPlayer>(); //kbScript = GetComponent<KnockBack>(); }