Jidongchen 3 anos atrás
pai
commit
6b75adebce
1 arquivos alterados com 6 adições e 0 exclusões
  1. 6 0
      Assets/GameMain/Scripts/UI/UICustom.cs

+ 6 - 0
Assets/GameMain/Scripts/UI/UICustom.cs

@@ -318,9 +318,15 @@ namespace MetaClient
                 nowPickOnImg.SetActive(false);
                 nowPickOnImg.SetActive(false);
                 if (_id != id)
                 if (_id != id)
                 {
                 {
+                    id = _id;
                     nowPickOnImg = _nowPickOnImg;
                     nowPickOnImg = _nowPickOnImg;
                     _nowPickOnImg.SetActive(true);
                     _nowPickOnImg.SetActive(true);
                 }
                 }
+                else
+                {
+                    nowPickOnImg = _nowPickOnImg;
+                    _nowPickOnImg.SetActive(!_nowPickOnImg.activeSelf);
+                }
             }
             }
             scrollbar.gameObject.SetActive(nowPickOnImg.activeSelf);
             scrollbar.gameObject.SetActive(nowPickOnImg.activeSelf);
         }
         }