比赛;编辑页面
This commit is contained in:
1 parent
85130ce6c3
commit
3ec6fd0569
56 files changed
+16371
-2749
No files matched your search
@@ -486,14 +486,16 @@ public class LoginController : MonoBehaviour
|
||||
}
|
||||
async void Init()
|
||||
{
|
||||
|
||||
|
||||
UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").GetComponent<PFUIPanel>();
|
||||
userInfos = UIManager.Instance.userInfos;
|
||||
App.DefaultRotateTexture = Utils.ReadTextureFromPlayerPrefs("rotateImage");
|
||||
App.firstEnter = PlayerPrefs.GetInt("firstEnter");
|
||||
PlayerPrefs.SetInt("firstEnter", 1);
|
||||
var notifyId = PlayerPrefs.GetInt("notifyId");
|
||||
//Task.Run(async () =>
|
||||
//{
|
||||
|
||||
//});
|
||||
var r = await ConfigHelper.userApi.GetNotify();
|
||||
if (r.result)
|
||||
{
|
||||
@@ -508,13 +510,14 @@ public class LoginController : MonoBehaviour
|
||||
//#endif
|
||||
App.notifyContent = r.data.Value<string>("Content");
|
||||
|
||||
if (r.data.Value<int>("Id") != notifyId)
|
||||
if (r.data.Value<int>("Id") != notifyId)//r.data.Value<int>("Id") != notifyId
|
||||
{
|
||||
UIManager.ShowNewsModal();
|
||||
PlayerPrefs.SetInt("notifyId", r.data.Value<int>("Id"));
|
||||
}
|
||||
}
|
||||
GetRotateImage();
|
||||
|
||||
}
|
||||
|
||||
async void GetRotateImage()
|
||||
|
||||
@@ -33,7 +33,6 @@ public class MainController : BaseScene
|
||||
//transform.Find("ModalPanel").GetComponent<RectTransform>().sizeDelta = new Vector2(844, 390);
|
||||
#endif
|
||||
App.MainDeviceAdapter.StartScan();
|
||||
#endif
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
||||
Reference in new issue
Block a user