Exemplo n.º 1
0
    // Use this for initialization
    private void OnTriggerStay(Collider other)
    {
        if (other.CompareTag("Player")) //Verifica se o jogador está na área de atuação
        {
            Anim.SetBool("PlayerNear", true);


            if (InManager.m_Interact)  //Verifica se o jogador interagiu com o Chekpoint
            {
                if (gameObject.CompareTag("Creditos"))
                {
                    LM.LoadLevel("Creditos");
                }
                else
                {
                    menu.Chekpoint();
                }
            }
        }
    }