Beispiel #1
0
 public void OnTriggerEnter(Collider colision)
 {
     if (colision.name == Network.player.ipAddress)
     {
         player = colision.gameObject;
         if (General.paso_mision == 7 && General.misionActual [0] == "2")
         {
             tiempo = 5;
             MoverMouse.cambioCamara = true;
             trasportar = true;
             if (!soyEntrar)
             {
                 Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                 mision.procesoMision2(General.paso_mision);
             }
         }
         else if (General.paso_mision == 7 && General.misionActual [0] == "3")
         {
             Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
             if (soyEntrar && numeroCasa == mision.numeroLlave)
             {
                 MoverMouse.cambioCamara = true;
                 trasportar = true;
                 mision.procesoMision3(General.paso_mision);
             }
         }
         else if (General.paso_mision == 8 && General.misionActual [0] == "3")
         {
             Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
             if (numeroCasa == mision.numeroLlave)
             {
                 trasportar = true;
             }
         }
         else if (General.paso_mision > 8 && General.paso_mision < 11 && General.misionActual [0] == "3")
         {
             Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
             if (numeroCasa == mision.numeroLlave)
             {
                 trasportar = true;
             }
         }
         else if (General.paso_mision == 11 && General.misionActual[0] == "3")
         {
             Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
             if (soyEntrar && numeroCasa == mision.numeroLlave)
             {
                 mision.procesoMision3(General.paso_mision);
                 MoverMouse.cambioCamara = true;
                 trasportar = true;
             }
         }
     }
 }
Beispiel #2
0
    // Update is called once per frame
    void Update()
    {
        if (tiempo > 0)
        {
            tiempo -= Time.deltaTime;
        }
        if (viaje)
        {
            player.transform.position = trasportar.transform.position;
            MoverMouse.cambioCamara   = false;

            if (tiempo < 1 && tiempo > 0)
            {
                viaje = false;
                Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                mision.procesoMision3(General.paso_mision);
            }
        }
    }
Beispiel #3
0
    void OnGUI()
    {
        if (iniciarConversasion && player.GetComponent <NetworkView> ().isMine)
        {
            if (General.paso_mision == 4)
            {
                if (tiempo > 15)
                {
                    mensaje = "Bienvenido a la quinta de Balmoral. " +
                              "\n Construida en 1870.";
                }
                else if (tiempo > 10)
                {
                    mensaje = "Aquí se realizaron grandes reuniones para crear" +
                              "\n las leyes de 1886 en nuestro país que \n" +
                              "rigen actualmente.";
                }
                else if (tiempo > 8)
                {
                    mensaje = "Para continuar,";
                }
                else if (tiempo > 0)
                {
                    mensaje = "debes llevar estos artículos para que \n" +
                              "sean firmados y publicados.";
                    if (!GameObject.Find("articulos"))
                    {
                        GameObject Obj = (GameObject)Instantiate(articulos, transform.position, transform.rotation);
                        Obj.transform.parent   = player.transform;
                        Obj.transform.rotation = new Quaternion();
                        Obj.transform.Rotate(270, 180, 0);
                        Obj.transform.localPosition = new Vector3(-0.95f, 0.5858f, 2.3f);
                        Obj.name = "articulos";
                    }
                }

                if (General.paso_mision == 4 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("articulos"))
                    {
                        Destroy(GameObject.Find("articulos"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else
            {
                mensaje = "Bienvenido a la quinta de Balmoral.";
            }

            GUIStyle style = new GUIStyle();
            style.alignment = TextAnchor.MiddleCenter;
            style           = GUI.skin.GetStyle("Box");
            style.fontSize  = (int)(20.0f);

            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4, 2 * (Screen.width / 3), Screen.height / 4), mensaje);

            style.fontSize = (int)(15.0f);
            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4 - Screen.height / 24, Screen.width / 3, Screen.height / 24), "Enrique Olaya Herrera");

            MoverMouse.movimiento = true;
        }
    }
Beispiel #4
0
    void OnGUI()
    {
        if (iniciarConversasion && player.GetComponent <NetworkView> ().isMine)
        {
            if (General.paso_mision == 6)
            {
                if (voz.clip.name != r1.name)
                {
                    voz.clip = r1;
                    voz.Play();
                }
                if (tiempo > 13)
                {
                    mensaje = "Bienvenido a esta nueva ciudad.";
                }
                else if (tiempo > 8)
                {
                    mensaje = "Te recibo el título de propiedad y 30 monedas\n" +
                              "de oro de impuestos de tu casa.";

                    if (!GameObject.Find("titulo"))
                    {
                        General.monedas -= 30;
                        GameObject permisoObj = (GameObject)Instantiate(titulo, transform.position, transform.rotation);
                        permisoObj.transform.parent   = player.transform;
                        permisoObj.transform.rotation = new Quaternion();
                        permisoObj.transform.Rotate(300, 0, 0);
                        permisoObj.transform.localPosition = new Vector3(-0.95f, 0.5858f, 2.3f);
                        permisoObj.transform.localScale    = new Vector3(0.5f, 0.5f, 0.5f);
                        permisoObj.name = "titulo";
                    }
                }
                else if (tiempo > 0)
                {
                    mensaje = "Gracias, te entrego las llaves de tu nuevo hogar, " +
                              "\n tu casa la puedes encontrar en las casas que \n" +
                              "ves al lado de nosotros. Ve y encuéntrala.";

                    if (!GameObject.Find("llave"))
                    {
                        GameObject llaveObj = (GameObject)Instantiate(llave, recaudador_game.transform.position, transform.rotation);
                        llaveObj.transform.parent        = player.transform;
                        llaveObj.transform.localPosition = new Vector3(2.14f, 0.84f, 2.08f);
                        llaveObj.name = "llave";
                    }
                }

                if (General.paso_mision == 6 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("llave"))
                    {
                        Destroy(GameObject.Find("titulo"));
                        Destroy(GameObject.Find("llave"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else if (General.paso_mision == 10)
            {
                if (voz.clip.name != r2.name)
                {
                    voz.clip = r2;
                    voz.Play();
                }
                mensaje = "Gracias, Alfonso te envía este regalo por ayudarle.";
                if (!GameObject.Find("cafe"))
                {
                    General.monedas -= 30;
                    GameObject quinaobj = (GameObject)Instantiate(quina, transform.position, transform.rotation);
                    quinaobj.transform.parent   = player.transform;
                    quinaobj.transform.rotation = new Quaternion();
                    quinaobj.transform.Rotate(300, 0, 0);
                    quinaobj.transform.localPosition = new Vector3(-0.95f, 0.5858f, 2.3f);
                    quinaobj.name = "quina";

                    GameObject cafeObj = (GameObject)Instantiate(cafe, recaudador_game.transform.position, transform.rotation);
                    cafeObj.transform.parent        = player.transform;
                    cafeObj.transform.localPosition = new Vector3(2.14f, 0f, 2.08f);
                    cafeObj.name = "cafe";
                }

                if (General.paso_mision == 10 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("cafe"))
                    {
                        Destroy(GameObject.Find("quina"));
                        Destroy(GameObject.Find("cafe"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else
            {
                mensaje = "Hola, bienvenido a Fusagasugá";
            }

            GUIStyle style = new GUIStyle();
            style.alignment = TextAnchor.MiddleCenter;
            style           = GUI.skin.GetStyle("Box");
            style.fontSize  = (int)(20.0f);

            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4, 2 * (Screen.width / 3), Screen.height / 4), mensaje);

            style.fontSize = (int)(15.0f);
            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4 - Screen.height / 24, Screen.width / 4, Screen.height / 24), "Recaudador");

            MoverMouse.movimiento = true;
        }
    }
Beispiel #5
0
    void OnGUI()
    {
        if (iniciarConversasion && player.GetComponent <NetworkView> ().isMine)
        {
            if (General.paso_mision == 2)
            {
                if (tiempo > 18)
                {
                    mensaje = "Bienvenido a la nueva iglesia, \n " +
                              "esta iglesia fue reconstruida en 1776,";
                }
                else if (tiempo > 12)
                {
                    mensaje = "mostrando la construcción de la nueva ciudad.";
                }
                else if (tiempo > 8)
                {
                    mensaje = "Desde aquí tu comunidad y tu empiezan a tomar \n" +
                              "la religión católica";
                }
                else if (tiempo > 0)
                {
                    mensaje = "para ello te entrego esta cruz, \n " +
                              "símbolo de nuestra religión católica.";
                    if (!GameObject.Find("cruz"))
                    {
                        GameObject cruzObj = (GameObject)Instantiate(cruz, transform.position, transform.rotation);
                        cruzObj.transform.parent   = player.transform;
                        cruzObj.transform.rotation = new Quaternion();
                        cruzObj.transform.Rotate(300, 0, 0);
                        cruzObj.transform.localPosition = new Vector3(-0.95f, 0.5858f, 2.3f);
                        cruzObj.name = "cruz";
                    }
                }

                if (General.paso_mision == 2 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("cruz"))
                    {
                        Destroy(GameObject.Find("cruz"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else
            {
                mensaje = "Bienvenido a la nueva iglesia.";
            }

            GUIStyle style = new GUIStyle();
            style.alignment = TextAnchor.MiddleCenter;
            style           = GUI.skin.GetStyle("Box");
            style.fontSize  = (int)(20.0f);

            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4, 2 * (Screen.width / 3), Screen.height / 4), mensaje);

            style.fontSize = (int)(15.0f);
            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4 - Screen.height / 24, Screen.width / 3, Screen.height / 24), "Antonio Martinez (Cura)");
            MoverMouse.movimiento = true;
        }
    }
Beispiel #6
0
    void OnGUI()
    {
        if (iniciarConversasion && player.GetComponent <NetworkView> ().isMine)
        {
            if (General.paso_mision == 9)
            {
                if (tiempo > 19)
                {
                    mensaje = "Bienvenido, esta es la casona la venta, \n ";
                }
                else if (tiempo > 10)
                {
                    mensaje = "aquí estoy realizando varias investigaciones sobre la fauna\n" +
                              "del Sumapaz. Me ha llegado información de que \n" +
                              "Alfonso López está enfermo";
                }
                else if (tiempo > 6)
                {
                    mensaje = "y no ha podido publicar las leyes \n " +
                              "Llévale esta planta,";
                    if (!GameObject.Find("quina"))
                    {
                        GameObject cruzObj = (GameObject)Instantiate(quina, transform.position, transform.rotation);
                        cruzObj.transform.parent   = player.transform;
                        cruzObj.transform.rotation = new Quaternion();
                        cruzObj.transform.Rotate(300, 0, 0);
                        cruzObj.transform.localPosition = new Vector3(-0.95f, 0.5858f, 2.3f);
                        cruzObj.name = "quina";
                    }
                }
                else if (tiempo > 0.5)
                {
                    mensaje = "se llama Quina, es muy usada como medicina. " +
                              "\n Ve rápido, no te demores mucho.";
                }

                if (General.paso_mision == 9 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("quina"))
                    {
                        Destroy(GameObject.Find("quina"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else
            {
                mensaje = "Bienvenido a la Casona la Venta.";
            }

            GUIStyle style = new GUIStyle();
            style.alignment = TextAnchor.MiddleCenter;
            style           = GUI.skin.GetStyle("Box");
            style.fontSize  = (int)(20.0f);

            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4, 2 * (Screen.width / 3), Screen.height / 4), mensaje);

            style.fontSize = (int)(15.0f);
            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4 - Screen.height / 24, Screen.width / 3, Screen.height / 24), "Jose Celestino Mutis");

            MoverMouse.movimiento = true;
        }
    }
Beispiel #7
0
    void OnGUI()
    {
        if (iniciarConversasion && player.GetComponent <NetworkView> ().isMine)
        {
            if (General.paso_mision == 5)
            {
                if (tiempo > 15)
                {
                    mensaje = "Bienvenido a este lugar\n ";
                }
                else if (tiempo > 10)
                {
                    mensaje = "os recibo los artículos que Don \n" +
                              "Enrique me envió contigo.";
                    if (!GameObject.Find("articulos"))
                    {
                        GameObject obj = (GameObject)Instantiate(articulos, player.transform.position, transform.rotation);
                        obj.transform.parent   = player.transform;
                        obj.transform.rotation = new Quaternion();
                        obj.transform.Rotate(270, 180, 0);
                        obj.transform.localPosition = new Vector3(2f, 0.2f, 3f);
                        obj.name = "articulos";
                    }
                }
                else if (tiempo > 8)
                {
                    mensaje = "Gracias. Por este favor, te entrego \n" +
                              "este título de propiedad.";
                    if (!GameObject.Find("titulo"))
                    {
                        GameObject permisoObj = (GameObject)Instantiate(titulo, player.transform.position, transform.rotation);
                        permisoObj.transform.parent   = player.transform;
                        permisoObj.transform.rotation = new Quaternion();
                        permisoObj.transform.Rotate(300, 0, 0);
                        permisoObj.transform.localPosition = new Vector3(-2.25f, 0.2f, 3f);
                        permisoObj.name = "titulo";
                        Destroy(GameObject.Find("articulos"));
                    }
                }
                else if (tiempo > 0)
                {
                    mensaje = "Debes ir cerca de la iglesia, hay \n" +
                              "te dirán donde será tu próximo hogar.";
                }

                if (General.paso_mision == 5 && General.misionActual [0] == "3" && tiempo < 0.5)
                {
                    //General.timepo = 10;
                    if (GameObject.Find("titulo"))
                    {
                        Destroy(GameObject.Find("titulo"));
                    }
                    iniciarConversasion = false;
                    Misiones mision = Camera.main.gameObject.GetComponent <Misiones> ();
                    mision.procesoMision3(General.paso_mision);
                }
            }
            else if (General.paso_mision != 10)
            {
                mensaje = "Bienvenido a mi casa Coburgo.";
            }

            GUIStyle style = new GUIStyle();
            style.alignment = TextAnchor.MiddleCenter;
            style           = GUI.skin.GetStyle("Box");
            style.fontSize  = (int)(20.0f);

            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4, 2 * (Screen.width / 3), Screen.height / 4), mensaje);

            style.fontSize = (int)(15.0f);
            GUI.Box(new Rect(Screen.width / 10, 3 * Screen.height / 4 - Screen.height / 24, Screen.width / 3, Screen.height / 24), "Alfonso Lopez Pumarejo");

            MoverMouse.movimiento = true;
        }
    }