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" }
void Start() { scriptMovimentacao = FindObjectOfType <Movimentacao>(); scriptDash = FindObjectOfType <dashMove>(); scriptBoss = FindObjectOfType <Boss>(); scriptJump = FindObjectOfType <PlayerJump>(); scriptVidaDoBoss = FindObjectOfType <vidaBoss>(); }
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>(); }