地球收藏问题,ios 蓝牙有返回值处理,划船机倒计时1时重置
This commit is contained in:
1 parent
9511e30e50
commit
6501284bbc
9 files changed
+36
-13
No files matched your search
@@ -73,6 +73,7 @@ public class Item : PFUIPanel, IPointerEnterHandler, IPointerExitHandler, IPoint
|
||||
SetRounded(hot, 17);
|
||||
|
||||
//UIManager.AddEvent(this.gameObject, EventTriggerType.PointerClick, OnPointerClick);
|
||||
transform.GetComponent<Button>().onClick.RemoveAllListeners();
|
||||
transform.GetComponent<Button>().onClick.AddListener(() => {
|
||||
if (onClick != null)
|
||||
{
|
||||
|
||||
@@ -61,6 +61,10 @@ public class MainNav : MonoBehaviour
|
||||
{
|
||||
transform.Find("Exit").gameObject.SetActive(true);
|
||||
}
|
||||
if (transform.Find("Home"))
|
||||
{
|
||||
transform.Find("Home").gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
||||
@@ -81,6 +81,8 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
||||
// }
|
||||
// SceneManager.LoadScene("Ride");
|
||||
//});
|
||||
Debug.Log(84);
|
||||
transform.GetComponent<Button>().onClick.RemoveAllListeners();
|
||||
transform.GetComponent<Button>().onClick.AddListener(() =>
|
||||
{
|
||||
//UIManager.ShowMapDetailPanel(myMap.Id);
|
||||
@@ -109,6 +111,7 @@ public class MapItem : MonoBehaviour, IPointerExitHandler, IPointerEnterHandler,
|
||||
diff.Find("Text").GetComponent<Text>().text = myMap.Hard;
|
||||
tabContainer.Find("3d").gameObject.SetActive(myMap.Enable3D);
|
||||
tabContainer.Find("Country").GetComponent<RawImage>().texture = UIManager.Instance.loginRegOptions.GetCountryImage(myMap.CountryCode);
|
||||
transform.Find("CollectImg").GetComponent<Button>().onClick.RemoveAllListeners();
|
||||
transform.Find("CollectImg").GetComponent<Button>().onClick.AddListener(Collect);
|
||||
transform.Find("CollectImg").Find("Image").GetComponent<Image>().sprite =
|
||||
UIManager.Instance.collectDict[myMap.IsFavorite];
|
||||
|
||||
@@ -166,6 +166,7 @@ public class RowerHomeScript : PFUIPanel
|
||||
}
|
||||
if (!isPause)
|
||||
{
|
||||
|
||||
startTime = UIManager.Now.GetDateTime();
|
||||
}
|
||||
TimerTicks();
|
||||
@@ -173,6 +174,13 @@ public class RowerHomeScript : PFUIPanel
|
||||
timer = 1.0f;
|
||||
btnStart.GetComponent<Image>().sprite = spriteDict["Untagged"];
|
||||
btnStart.tag = "Untagged";
|
||||
},
|
||||
()=>
|
||||
{
|
||||
if (Rower != null)
|
||||
{
|
||||
Rower.Reset();
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user