Example #1
0
    void Start()
    {
        vidaPlayerScript = FindObjectOfType <vidaPlayer>(); // CHAMANDO O SCRIPT "vidaPlayer"
        fbPlayerScript   = FindObjectOfType <feedbackPlayer>();
        kbScript         = GetComponent <KnockBack>();

        speedEnemy = GetComponent <NavMeshAgent>().speed;
    }
Example #2
0
 private void Start()
 {
     //Invocar Scripts
     bossScript       = FindObjectOfType <Boss>();
     vidaPlayerScript = FindObjectOfType <vidaPlayer>();
     fbPlayerScript   = FindObjectOfType <feedbackPlayer>();
     kbScript         = GetComponent <KnockBack>();
 }
Example #3
0
    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>();
    }
Example #4
0
 void Start()
 {
     vidaPlayerScript = FindObjectOfType <vidaPlayer>(); // CHAMANDO O SCRIPT "vidaPlayer"
     fbPlayerScript   = FindObjectOfType <feedbackPlayer>();
     //kbScript = GetComponent<KnockBack>();
 }