Пример #1
0
 void Start()
 {
     vidaEnemyScript = FindObjectOfType <vidaEnemy>();     // CHAMANDO O SCRIPT "vidaEnemy"
     vidaBossScript  = FindObjectOfType <vidaBoss>();      // CHAMANDO O SCRIPT "vidaBoss"
     vidaBabyScript  = FindObjectOfType <VidaBaby>();      // CHAMANDO O SCRIPT "VidaBaby"
     fbEnemyScript   = FindObjectOfType <FeedbackEnemy>(); // CHAMANDO O SCRIPT "FeedbackEnemy"
 }
Пример #2
0
 void Start()
 {
     scriptMovimentacao = FindObjectOfType <Movimentacao>();
     scriptDash         = FindObjectOfType <dashMove>();
     scriptBoss         = FindObjectOfType <Boss>();
     scriptJump         = FindObjectOfType <PlayerJump>();
     scriptVidaDoBoss   = FindObjectOfType <vidaBoss>();
 }
Пример #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>();
    }