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() { scriptMovimentacao = FindObjectOfType <Movimentacao>(); scriptDash = FindObjectOfType <dashMove>(); scriptBoss = FindObjectOfType <Boss>(); scriptJump = FindObjectOfType <PlayerJump>(); scriptVidaDoBoss = FindObjectOfType <vidaBoss>(); }
void Start() { movScript = FindObjectOfType <Movimentacao>(); combosScript = FindObjectOfType <Combos>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); pauseScript = FindObjectOfType <pauseInGame>(); }
void Start() { transicaoParaODia = FindObjectOfType <TransicaoParaODia>(); _textPensamento.SetActive(true); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); attackScript = FindObjectOfType <Combos>(); }
void Start() { animator = GetComponent <Animator>(); clicks = 0; canClick = true; movScript = FindObjectOfType <Movimentacao>(); weaponIdScript = FindObjectOfType <WeaponSwitching>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); }
void Start() { tutorialBackgroundddd.enabled = false; textoInteragir.enabled = false; _textInteragir.SetActive(true); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); attackScript = FindObjectOfType <Combos>(); }
void Start() { telaPause.SetActive(false); MenuOpcoes.SetActive(false); Cursor.lockState = CursorLockMode.Locked; movScript = FindObjectOfType <Movimentacao>(); combosScript = FindObjectOfType <Combos>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); }
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>(); }
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() { GameOverScript = FindObjectOfType <GameOver>(); anima = GetComponent <Animator>(); anima.SetInteger("countDeath", 0); comboScript = FindObjectOfType <Combos>(); movScript = FindObjectOfType <Movimentacao>(); weaponIdScript = FindObjectOfType <WeaponSwitching>(); dashScript = FindObjectOfType <dashMove>(); jumpScript = FindObjectOfType <PlayerJump>(); gameManagerScript = FindObjectOfType <gameManager>(); if (ValorCenas.vida != 0) { life = ValorCenas.vida; } if (GameObject.Find("gameManager") != null && gameManagerScript.life != 0) { life = gameManagerScript.life; } /*if (GameObject.Find("gameManager") != null) * { * * Vector3 novaPosicaox = transform.position; * novaPosicaox.x = gameManagerScript.playerPosX; * transform.position = novaPosicaox; * * Vector3 novaPosicaoy = transform.position; * novaPosicaoy.y = gameManagerScript.playerPosY; * transform.position = novaPosicaoy; * }*/ }