public void PictureButton(Main_AlbumViewerNode node)
 {
     if (GarbageBoxActive)
     {
         if (node.isGarbageBoxSelected)
         {
             node.GarbageBoxNonSelect();
             GarbageBoxSelectList.Remove(node);
             _Text_GarbageBoxInfo.text = _String_GarbageBoxInfo + "(" + GarbageBoxSelectList.Count + "枚)";
         }
         else
         {
             node.GarbageBoxSelect();
             GarbageBoxSelectList.Add(node);
             _Text_GarbageBoxInfo.text = _String_GarbageBoxInfo + "(" + GarbageBoxSelectList.Count + "枚)";
         }
     }
     else
     {
         if (OpenZoomPictureRoutine == null)
         {
             OpenZoomPictureRoutine = Routine_OpenZoomPicture(node.Data);
             StartCoroutine(OpenZoomPictureRoutine);
         }
     }
 }
Ejemplo n.º 2
0
    public void PictureButton(Main_AlbumViewerNode node)
    {
        if (_GarbageBoxInfo.activeInHierarchy)
        {
            return;
        }

        if (GarbageBoxActive)
        {
            if (node.isGarbageBoxSelected)
            {
                node.GarbageBoxNonSelect();
                GarbageBoxSelectList.Remove(node);
            }
            else
            {
                node.GarbageBoxSelect();
                GarbageBoxSelectList.Add(node);
            }
        }
        else
        {
            if (OpenZoomPictureRoutine == null)
            {
                OpenZoomPictureRoutine = Routine_OpenZoomPicture(node.Data);
                StartCoroutine(OpenZoomPictureRoutine);
            }
        }
    }