赛事提醒自动保存当前骑行
This commit is contained in:
parent
732e5ac6c6
commit
0549cdbd52
@ -1239,10 +1239,7 @@ public class LoginController : BaseScene
|
||||
App.CurrentUser = data;
|
||||
App.RideSetting.Sensitivity = data.Sensitivity;
|
||||
//查询我参加的比赛
|
||||
Task.Run(() =>
|
||||
{
|
||||
UIManager.UpdateJoinCompetition();
|
||||
});
|
||||
UIManager.UpdateJoinCompetition();
|
||||
//SceneManager.LoadSceneAsync("MainScene");
|
||||
StartCoroutine("LoadMain");
|
||||
}
|
||||
|
||||
@ -107,10 +107,8 @@ public class MainController : BaseScene
|
||||
//UIManager.ShowBigMapPanel();
|
||||
//UIManager.ShowEarthPanel();
|
||||
}
|
||||
|
||||
Task.Run(() => {
|
||||
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
|
||||
});
|
||||
|
||||
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -19,6 +19,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
|
||||
public int CompetitionId { get; set; }
|
||||
public int RouteId { get; set; }
|
||||
public string SceneName { get; set; }
|
||||
|
||||
protected override void Awake()
|
||||
{
|
||||
@ -57,11 +58,17 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
Content.text = content;
|
||||
CompetitionId = competitionId;
|
||||
RouteId = routeId;
|
||||
SceneName = sceneName;
|
||||
}
|
||||
|
||||
//切换到当前用户视角
|
||||
public void Go(BaseEventData baseEventData)
|
||||
{
|
||||
if (SceneName.Equals("Ride"))
|
||||
{
|
||||
var playerController = FindObjectOfType<PlayerController>();
|
||||
playerController.Upload();
|
||||
}
|
||||
App.CompetitionIdList.Add(CompetitionId);
|
||||
App.CompetionId = CompetitionId;
|
||||
App.RouteIdParam = RouteId;
|
||||
|
||||
@ -416,7 +416,7 @@ public class UIManager : MonoBehaviour
|
||||
{
|
||||
if (App.CurrentScene.Equals("Ride"))
|
||||
{
|
||||
ShowRaceAlertPanel();
|
||||
var mRaceAlertPanel = ShowRaceAlertPanel();
|
||||
if (mRaceAlertPanel != null)
|
||||
{
|
||||
mRaceAlertPanel.Set(e.StartTime.ToLocalTime(), Now.GetDateTime(), e.title, e.SceneName, e.competitionId, e.routeId);
|
||||
@ -717,9 +717,11 @@ public class UIManager : MonoBehaviour
|
||||
UIManager.Show(UIManager.Instance.EditUserPanel, UIManager.Instance.MainPanel);
|
||||
}
|
||||
|
||||
public static void ShowRaceAlertPanel()
|
||||
public static RaceAlertController ShowRaceAlertPanel()
|
||||
{
|
||||
UIManager.Show(UIManager.Instance.RaceAlertPanel, null, true);
|
||||
var raceAlertPanel = UIManager.Instance.RaceAlertPanel;
|
||||
UIManager.Show(raceAlertPanel, null, true);
|
||||
return raceAlertPanel;
|
||||
}
|
||||
|
||||
public static RaceAlertController ShowRaceAlertBanelPanel()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user