Browse Source

匹配界面按钮交互

lvjincheng 4 years ago
parent
commit
52ad8ce856
1 changed files with 2 additions and 2 deletions
  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