Exemplo n.º 1
0
 public override void Dar(ManejoPallets receptor)
 {
     if (Tenencia())
     {
         if (Controlador.GetPalletEnMov() == null)
         {
             if (receptor.Recibir(Pallets[0]))
             {
                 CintaReceptora.Encender();
                 Controlador.SalidaPallet(Pallets[0]);
                 Pallets[0].GetComponent <Renderer>().enabled = true;
                 Pallets.RemoveAt(0);
                 Contenido.Sacar();
                 ApagarAnim();
             }
         }
     }
 }
Exemplo n.º 2
0
 //------------------------------------------------------------//
 public override void Dar(ManejoPallets receptor)
 {
     if (HasPallets())
     {
         if (unloadController.GetPalletEnMov() == null)
         {
             if (receptor.Recibir(Pallets[0]))
             {
                 //enciende la cinta y el indicador
                 //cambia la textura de cuantos pallet le queda
                 CintaReceptora.Encender();
                 unloadController.SalidaPallet(Pallets[0]);
                 Pallets[0].GetComponent <Renderer>().enabled = true;
                 Pallets.RemoveAt(0);
                 Contenido.Sacar();
                 ApagarAnim();
             }
         }
     }
 }
Exemplo n.º 3
0
    //------------------------------------------------------------//

    public override void Dar(ManejoPallets receptor)
    {
        if (Tenencia())
        {
            if (Controlador.GetPalletEnMov() == null)
            {
                if (receptor.Recibir(Pallets[0]))
                {
                    //enciende la cinta y el indicador
                    //cambia la textura de cuantos pallet le queda
                    CintaReceptora.Encender();
                    Controlador.SalidaPallet(Pallets[0]);
                    Pallets[0].GetComponent <Renderer>().enabled = true;
                    Pallets.RemoveAt(0);
                    Contenido.Sacar();
                    ApagarAnim();
                    //Debug.Log("pallet entregado a Mano de Estanteria");
                }
            }
        }
    }