骑行代码迁移,赛事逻辑初步框架完成
This commit is contained in:
1 parent
380e67cc1e
commit
ec45246aa4
151 files changed
+7689
-3538
No files matched your search
@@ -46,6 +46,7 @@ public class HomeController : PFUIPanel
|
||||
//{
|
||||
// Debug.Log(45);
|
||||
//});
|
||||
UIManager.AddEvent(BtnMatch.gameObject, EventTriggerType.PointerClick, GoMatch);
|
||||
UIManager.AddEvent(BtnMatch.gameObject, EventTriggerType.PointerEnter, OnHover);
|
||||
UIManager.AddEvent(BtnMatch.gameObject, EventTriggerType.PointerExit, OnExit);
|
||||
BtnTraining = BtnContainer.Find("BtnTraining");
|
||||
@@ -83,7 +84,7 @@ public class HomeController : PFUIPanel
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
private void GoRide(BaseEventData e)
|
||||
{
|
||||
//UIManager.ShowEarthPanel(App.latitude, App.longitude);
|
||||
@@ -98,6 +99,17 @@ public class HomeController : PFUIPanel
|
||||
}
|
||||
OnExit(e);
|
||||
}
|
||||
//进入比赛
|
||||
private void GoMatch(BaseEventData e)
|
||||
{
|
||||
//TODO:进入比赛列表
|
||||
|
||||
#region 测试比赛
|
||||
App.CompetionId = 1048;
|
||||
App.RouteIdParam = 3386;
|
||||
SceneManager.LoadScene("Ride");
|
||||
#endregion
|
||||
}
|
||||
private void OnHover(BaseEventData e)
|
||||
{
|
||||
var pe = (PointerEventData)e;
|
||||
|
||||
Reference in new issue
Block a user