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