|
@@ -15,7 +15,7 @@ public class PageItem : MonoBehaviour
|
|
|
public Image image;
|
|
|
private void Start()
|
|
|
{
|
|
|
- pageBtnControl = transform.parent.gameObject.GetComponent<PageBtnControl>();
|
|
|
+ // pageBtnControl = transform.parent.gameObject.GetComponent<PageBtnControl>();
|
|
|
image = transform.GetComponent<Image>();
|
|
|
transform.GetComponent<Button>().onClick.AddListener(OnClick);
|
|
|
page = itemNum;
|
|
@@ -25,13 +25,13 @@ public class PageItem : MonoBehaviour
|
|
|
{
|
|
|
this.page = Page;
|
|
|
text.text = page.ToString();
|
|
|
- image.color = Color.white;
|
|
|
+ // image.color = Color.white;
|
|
|
}
|
|
|
|
|
|
public void UpdateString( string str)
|
|
|
{
|
|
|
text.text = str;
|
|
|
- image.color = Color.white;
|
|
|
+ // image.color = Color.white;
|
|
|
this.page = -1;
|
|
|
}
|
|
|
|
|
@@ -52,4 +52,9 @@ public class PageItem : MonoBehaviour
|
|
|
{
|
|
|
image.color = Color.blue;
|
|
|
}
|
|
|
+
|
|
|
+ public void CloseShowUI()
|
|
|
+ {
|
|
|
+ image.color = Color.white;
|
|
|
+ }
|
|
|
}
|