Ejemplo n.º 1
0
    public void Inspecionar()
    {
        //  Debug.LogError("interagindo asdasd");

        if (inspencionado.transform.tag == "Personagens")
        {
            //      Debug.LogError("interagindo personagem");
            acompanhante = inspencionado.GetComponent <CharacterNPC>();

            if (acompanhante != null)
            {
                acompanhante.chamarCanvasMissao();
            }
            else
            {
                var npcConversar = inspencionado.GetComponent <InformacaoPerosonagem>();
                if (npcConversar != null)
                {
                    npcConversar.Conversar();
                }
            }
        }
        else if (inspencionado.transform.tag == "ItemInformativo")
        {
            information = inspencionado.GetComponent <InformationItem>();
            information.ExibirInformativoTP();
        }
    }