ソースを参照

匹配界面按钮交互

lvjincheng 4 年 前
コミット
52ad8ce856
1 ファイル変更2 行追加2 行削除
  1. 2 2
      Assets/BowArrow/Scripts/View/PKMatchView.cs

+ 2 - 2
Assets/BowArrow/Scripts/View/PKMatchView.cs

@@ -59,11 +59,11 @@ public class PKMatchView : MonoBehaviour
                 Image img = item.GetComponent<Image>();
                 img.sprite = item == btn ? btnTabTextures[1] : btnTabTextures[0];
             }
-            int index = Array.IndexOf(btnTabs, btnTabs);
+            int index = Array.IndexOf(btnTabs, btn);
             HandleBtnTabSelectedLogic(index);
         }
         void HandleBtnTabSelectedLogic(int btnIndex) {
-            
+            this.transform.Find("BoxRight/BtnMatch").GetComponent<Button>().interactable = btnIndex == 0;
         }
     #endregion