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