增加选择页,修改记录列表pc兼容
This commit is contained in:
1 parent
8802676b98
commit
85e0a13f08
18 files changed
+2121
-1426
No files matched your search
@@ -51,12 +51,16 @@ public class MainNav : MonoBehaviour
|
||||
});
|
||||
}
|
||||
|
||||
public void HideDevice()
|
||||
public void ShowRowerTab()
|
||||
{
|
||||
if (transform.Find("Device"))
|
||||
{
|
||||
transform.Find("Device").gameObject.SetActive(false);
|
||||
}
|
||||
if (transform.Find("Exit"))
|
||||
{
|
||||
transform.Find("Exit").gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
||||
@@ -89,9 +89,9 @@ public class RowerHomeScript : PFUIPanel
|
||||
};
|
||||
GetComponent<RectTransform>().localScale = Vector3.one;
|
||||
GetComponent<RectTransform>().localPosition = Vector3.zero;
|
||||
var mainNav = this.transform.Find("MainNav").GetComponent<MainNav>();
|
||||
mainNav.ShowExit();
|
||||
mainNav.HideDevice();
|
||||
|
||||
//mainNav.ShowExit();
|
||||
|
||||
var btnHome = transform.Find("Other/BtnHome").gameObject;
|
||||
UIManager.AddEvent(btnHome, UnityEngine.EventSystems.EventTriggerType.PointerClick, b => ReturnHome());
|
||||
btnStart = transform.Find("Other1/BtnStart").gameObject;
|
||||
@@ -105,6 +105,9 @@ public class RowerHomeScript : PFUIPanel
|
||||
public override void Show()
|
||||
{
|
||||
base.Show();
|
||||
var mainNav = this.transform.Find("MainNav").GetComponent<MainNav>();
|
||||
mainNav.ShowRowerTab();
|
||||
transform.MyDOFade();
|
||||
Init();
|
||||
//transform.Find("Left/Rower").GetComponent<RowerAnimation>().StartAnimation();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,10 @@ public class ResultListController : PFUIPanel
|
||||
matchScroll = scrollContent.Find("MatchList");
|
||||
matchContent = matchScroll.Find("Viewport").Find("Content");
|
||||
rowerScroll = scrollContent.Find("RowerList");
|
||||
rowerContent = rowerScroll.Find("Viewport").Find("Content");
|
||||
if (rowerScroll)
|
||||
{
|
||||
rowerContent = rowerScroll.Find("Viewport").Find("Content");
|
||||
}
|
||||
contents = new Transform[] { routeContent, matchContent, rowerContent};
|
||||
|
||||
if (btnRoute != null)
|
||||
@@ -112,7 +115,9 @@ public class ResultListController : PFUIPanel
|
||||
scrolls = new Transform[] { routeScroll, matchScroll, rowerScroll };
|
||||
//GetList(0);
|
||||
GetList(1);
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
GetList(2);
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Load()
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class RowerSelector : PFUIPanel
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
var btnRide = transform.Find("Container/BtnRide").gameObject;
|
||||
if (btnRide)
|
||||
{
|
||||
UIManager.AddEvent(btnRide, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
Close();
|
||||
UIManager.ShowHomePanel();
|
||||
});
|
||||
}
|
||||
|
||||
var btnRower = transform.Find("Container/BtnRower").gameObject;
|
||||
if (btnRower)
|
||||
{
|
||||
UIManager.AddEvent(btnRower, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
Close();
|
||||
UIManager.ShowRowerPanel();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 062e7f4cad92a34488b81254ede4cbe9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in new issue
Block a user