Example #1
0
    public void OnTest()
    {
        menu = MainCanvas.GetComponent<ManagerMenu>();
        editor = GetComponent<ManagerEdition>();

        GameObject TemaPrueba = CrearTema("Tema Prueba", "Sebastian", new DateTime(2015, 10, 13), null);
        GameObject VRClassroom = CrearTema("VRClassroom", "Andrés Gomez", new DateTime(2015, 06, 13), null);

        menu.Agregar(TemaPrueba);
        menu.Agregar(VRClassroom);

        GameObject SubTema1 = CrearTema("SubTema 1", "Sebastian", new DateTime(2015, 10, 23), TemaPrueba);
        GameObject SubTema2 = CrearTema("SubTema 2", "Sebastian", new DateTime(2015, 10, 23), TemaPrueba);
        GameObject Elemento2a = CrearElemento("Elemento 2a", "Descripcion 2a", SubTema1);
        GameObject Elemento2b = CrearElemento("Elemento 2b", "Descripcion 2b", SubTema1);
        GameObject Elemento2c = CrearElemento("Elemento 2c", "Descripcion 2c", SubTema2);
        GameObject Elemento2d = CrearElemento("Elemento 2d", "Descripcion 2d", SubTema2);

        GameObject Coordenadas = CrearTema("Sistemas de coordenadas", "Sebastian", new DateTime(2015, 10, 23), VRClassroom);
        GameObject Ejemplos = CrearTema("Ejemplos", "Sebastian", new DateTime(2015, 10, 23), VRClassroom);

        GameObject BoxShooter = CrearElemento("Box Shooter", "Un pequeño juego que muestra el funcionamiento basico de Unity", Ejemplos);
        Elemento bs = BoxShooter.GetComponent<Elemento>();
        bs.NombreEjecutable = "BoxShooter";
        bs.SetIcono(IconoBoxShooter);

        GameObject WebPage = CrearElemento("Sistema de coordenadas en Unity", "Documentación de como Unity3D implementa y usa sus sitema de coordenadas", Coordenadas);
        Elemento wp = WebPage.GetComponent<Elemento>();
        wp.NombreEjecutable = "Web_Page_Viewer";
        wp.SetIcono(IconoWebPage);

        GameObject classroom = CrearElemento("Sistema de coordenadas Leccion 1", "Lección de introducción al sistema de coordenadas", Coordenadas);
        Elemento cr = classroom.GetComponent<Elemento>();
        cr.NombreEjecutable = "Classroom";
        cr.SetIcono(IconoClassroom);
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     menu = MainCanvas.GetComponent<ManagerMenu>();
     editor = GetComponent<ManagerEdition>();
 }