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()
 {
     scriptMovimentacao = FindObjectOfType <Movimentacao>();
     scriptDash         = FindObjectOfType <dashMove>();
     scriptBoss         = FindObjectOfType <Boss>();
     scriptJump         = FindObjectOfType <PlayerJump>();
     scriptVidaDoBoss   = FindObjectOfType <vidaBoss>();
 }
Esempio n. 3
0
 void Start()
 {
     movScript    = FindObjectOfType <Movimentacao>();
     combosScript = FindObjectOfType <Combos>();
     dashScript   = FindObjectOfType <dashMove>();
     jumpScript   = FindObjectOfType <PlayerJump>();
     pauseScript  = FindObjectOfType <pauseInGame>();
 }
Esempio n. 4
0
    void Start()
    {
        transicaoParaODia = FindObjectOfType <TransicaoParaODia>();

        _textPensamento.SetActive(true);

        dashScript   = FindObjectOfType <dashMove>();
        jumpScript   = FindObjectOfType <PlayerJump>();
        attackScript = FindObjectOfType <Combos>();
    }
Esempio n. 5
0
    void Start()
    {
        animator = GetComponent <Animator>();
        clicks   = 0;
        canClick = true;

        movScript      = FindObjectOfType <Movimentacao>();
        weaponIdScript = FindObjectOfType <WeaponSwitching>();
        dashScript     = FindObjectOfType <dashMove>();
        jumpScript     = FindObjectOfType <PlayerJump>();
    }
Esempio n. 6
0
    void Start()
    {
        tutorialBackgroundddd.enabled = false;
        textoInteragir.enabled        = false;

        _textInteragir.SetActive(true);

        dashScript   = FindObjectOfType <dashMove>();
        jumpScript   = FindObjectOfType <PlayerJump>();
        attackScript = FindObjectOfType <Combos>();
    }
Esempio n. 7
0
    void Start()
    {
        telaPause.SetActive(false);

        MenuOpcoes.SetActive(false);

        Cursor.lockState = CursorLockMode.Locked;

        movScript    = FindObjectOfType <Movimentacao>();
        combosScript = FindObjectOfType <Combos>();
        dashScript   = FindObjectOfType <dashMove>();
        jumpScript   = FindObjectOfType <PlayerJump>();
    }
Esempio n. 8
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>();
    }
Esempio n. 9
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. 10
0
    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;
         * }*/
    }