Esempio n. 1
0
    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>();
    }
Esempio n. 2
0
    void Start()
    {
        transicaoParaODia = FindObjectOfType <TransicaoParaODia>();

        _textPensamento.SetActive(true);

        dashScript   = FindObjectOfType <dashMove>();
        jumpScript   = FindObjectOfType <PlayerJump>();
        attackScript = FindObjectOfType <Combos>();
    }
Esempio n. 3
0
    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>();
    }
Esempio n. 4
0
 void Start()
 {
     transicaoParaODia = FindObjectOfType <TransicaoParaODia>();
 }