划船机暂存

This commit is contained in:
Caiyanpeng committed 2021-09-28 11:27:24 +08:00
1 parent 1c73701e73
commit c73545d912
164 files changed
+38281 -2181

No files matched your search

+15 -4
View File
@@ -37,15 +37,14 @@ public class MainController : BaseScene
//rect1.offsetMax = Vector2.zero;
//transform.Find("ModalPanel").GetComponent<RectTransform>().sizeDelta = new Vector2(844, 390);
#endif
//StartCoroutine(setWidth());
//App.MainDeviceAdapter.StartScan();
}
// Start is called before the first frame update
async void Start()
{
{
UIManager.Instance.Root = root;
UIManager.Instance.MainPanel = this.transform.Find("Panel").GetComponent<PFUIPanel>();
UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").GetComponent<PFUIPanel>();
@@ -63,6 +62,11 @@ public class MainController : BaseScene
//{
// UIManager.ShowHomePanel();
//});
if (App.IsRowerMode)
{
UIManager.ShowRowerPanel();
return;
}
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
{
UIManager.ShowHomePanel();
@@ -90,6 +94,7 @@ public class MainController : BaseScene
//UIManager.ShowBigMapPanel();
//UIManager.ShowEarthPanel();
}
Task.Run(() => {
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
});
@@ -101,6 +106,12 @@ public class MainController : BaseScene
// Update is called once per frame
void Update()
{
if (App.canvasWidth != transform.GetComponent<RectTransform>().sizeDelta.x)
{
App.canvasWidth = transform.GetComponent<RectTransform>().sizeDelta.x;
Debug.Log(App.canvasWidth);
}
//Debug.Log(transform.GetComponent<RectTransform>().sizeDelta.x);
t -= Time.deltaTime;
while (t <= 0)
{