Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        if (this.name == "Chefe")
        {
            this.Exibir();
            LeituraArqEmpresa.LerArquivo();
            gameObject[0] = GameObject.Find("Empresa").transform.FindChild("Chefe").gameObject;
            gameObject[1] = GameObject.Find("Empresa").transform.FindChild("Corredor").gameObject;
            gameObject[2] = GameObject.Find("Empresa").transform.FindChild("Elevador").gameObject;
            gameObject[3] = GameObject.Find("Empresa").transform.FindChild("Personagem").gameObject;
            caixaDialogo  = (GameObject)Resources.Load("Prefabs/CaixaDialogo", typeof(GameObject)) as GameObject;

            this.GetComponent <Interacao>().Start();
            Interacao.Empresa();
            this.GetComponent <Interacao>().aparecer();

            StartCoroutine(IniciarMusica());
        }
    }