Exemplo n.º 1
0
    public override void RestoreStatus(DeskItemStatus status)
    {
        ItemStatus = status;

        Draggable trolo = GetComponent <Draggable>();

        switch (ItemStatus.DrawerStatus)
        {
        case ELeftOrRight.Left:
            trolo.HandleDropIntoDrawer(GrimDesk.instance.DrawerLeft);
            break;

        case ELeftOrRight.Right:
            trolo.HandleDropIntoDrawer(GrimDesk.instance.DrawerRight);
            break;

        case ELeftOrRight.MAX:
            break;
        }
        if (ItemStatus.Position.x < 9.3)
        {
            gameObject.transform.localPosition = ItemStatus.Position;
        }
        else
        {
        }
    }
Exemplo n.º 2
0
 public override void RestoreStatus(DeskItemStatus status)
 {
     base.RestoreStatus(status);
 }