消息通知逻辑
This commit is contained in:
1 parent
28487b295b
commit
5edd784080
5 files changed
+37
-10
No files matched your search
@@ -17,10 +17,19 @@ public class NewsController : PFUIPanel
|
||||
UIManager.AddEvent(exit.gameObject, EventTriggerType.PointerClick, (b) =>
|
||||
{
|
||||
Close();
|
||||
if (App.multiNotifyContent.Count > 0)
|
||||
{
|
||||
transform.Find("Main").Find("Inner").Find("Content").GetComponent<Text>().text = App.multiNotifyContent.Dequeue();
|
||||
Invoke("Open", 0.3f);
|
||||
}
|
||||
});
|
||||
}
|
||||
Get();
|
||||
}
|
||||
void Open()
|
||||
{
|
||||
gameObject.SetActive(true);
|
||||
}
|
||||
Transform content,exit;
|
||||
void Get()
|
||||
{
|
||||
|
||||
@@ -326,7 +326,7 @@ public class MapListController : PFUIPanel
|
||||
mc.GetComponent<CanvasGroup>().alpha = 0;
|
||||
mc.GetComponent<CanvasGroup>().DOFade(1, 0.3f);
|
||||
#else
|
||||
var topRect = topContainer;
|
||||
var topRect = transform.Find("Panel/Top/Container");
|
||||
#endif
|
||||
if (isFocusSearch)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user