void Start() { movScript = FindObjectOfType <Movimentacao>(); combosScript = FindObjectOfType <Combos>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); pauseScript = FindObjectOfType <pauseInGame>(); //CHAMAR TRANSIÇÃO transicaoParaODia = FindObjectOfType <TransicaoParaODia>(); if (SceneManager.GetActiveScene().name == "CenaFinal") { GetComponent <Animator>().SetBool("bCenaFinal", true); if (GetComponent <Animator>().GetInteger("countStand") == 0) { StartCoroutine(waitStand()); } GetComponent <Animator>().SetBool("bStretch", true); } else { GetComponent <Animator>().SetBool("bArtesFinalizacao", false); } fadeScript = FindObjectOfType <Fade>(); }
void Start() { transicaoParaODia = FindObjectOfType <TransicaoParaODia>(); _textPensamento.SetActive(true); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); attackScript = FindObjectOfType <Combos>(); }
private void Start() { _textPensamento.SetActive(true); animaBoss = modelBoss.GetComponent <Animator>(); bossScript = FindObjectOfType <Boss>(); BossLife.SetActive(true); //player = GameObject.FindGameObjectWithTag("Player"); //CHAMAR TRANSIÇÃO transicaoParaODia = FindObjectOfType <TransicaoParaODia>(); if (SceneManager.GetActiveScene().name == "SalaBoss") { GetComponent <Animator>().SetBool("bSalaBoss", true); if (GetComponent <Animator>().GetInteger("countStand") == 0) { StartCoroutine(waitStand()); } GetComponent <Animator>().SetBool("bStretch", true); } else { GetComponent <Animator>().SetBool("bSalaBoss", false); } fadeScript = FindObjectOfType <Fade>(); //Scripts player movScript = FindObjectOfType <Movimentacao>(); combosScript = FindObjectOfType <Combos>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); }
void Start() { transicaoParaODia = FindObjectOfType <TransicaoParaODia>(); }