Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Antes del thread");
            Horno h = new Horno();

            Console.WriteLine("Horno instanciado");
            h.Hornear(new Orden(new Receta(), 10));
            Console.WriteLine("Despues del thread");
        }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        Horno horno = new Horno(true, 50, 20, 3);

        horno.Hornear("el horno esta encendido? = " + horno.encendido);
        horno.Hornear("usted tiene un " + horno.contenido + " horneando");
        horno.Hornear("la temperatura es de " + horno.temperatura);

        Ingrediente ingrediente = new Ingrediente();
        Ingrediente pollo       = new Ingrediente();

        pollo.calorias = 25;
        pollo.cantidad = 5;
        pollo.nombre   = "pechugon";
        Almacen almacen = new Almacen();

        almacen.addIng(pollo);
        Debug.Log(pollo);
    }