Merge remote-tracking branch 'origin/dev_nonearth' into dev_cyp
This commit is contained in:
commit
ebcc83ed6a
5 files changed
+44
-33
No files matched your search
@@ -221,18 +221,19 @@ public class MainController : BaseScene
|
||||
//{
|
||||
// UIManager.ShowHomePanel();
|
||||
//});
|
||||
//#if UNITY_ANDROID || UNITY_IOS
|
||||
// if (!App.IsRowerMode.HasValue)
|
||||
// {
|
||||
// UIManager.ShowRowerSelector();
|
||||
// return;
|
||||
// }
|
||||
// if (App.IsRowerMode == true)
|
||||
// {
|
||||
// UIManager.ShowRowerPanel();
|
||||
// return;
|
||||
// }
|
||||
//#endif
|
||||
//#if UNITY_ANDROID || UNITY_IOS
|
||||
// if (!App.IsRowerMode.HasValue)
|
||||
// {
|
||||
// UIManager.ShowRowerSelector();
|
||||
// return;
|
||||
// }
|
||||
// if (App.IsRowerMode == true)
|
||||
// {
|
||||
// UIManager.ShowRowerPanel();
|
||||
// return;
|
||||
// }
|
||||
//#endif
|
||||
LastRide();//检查本地异常中断的骑行并弹窗提示继续
|
||||
if (App.MainSceneParam.ContainsKey("Name") && !string.IsNullOrEmpty(App.MainSceneParam["Name"]))
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
@@ -267,7 +268,6 @@ public class MainController : BaseScene
|
||||
}
|
||||
|
||||
UIManager.UpdateJoinCompetition();//查询当前我参加的赛事
|
||||
LastRide();//检查本地异常中断的骑行并弹窗提示继续
|
||||
}
|
||||
|
||||
float maxt = 0f; //用于获取全服最值内容
|
||||
@@ -404,7 +404,10 @@ public class MainController : BaseScene
|
||||
var tempRecordData = Newtonsoft.Json.JsonConvert.DeserializeObject<TempRecordData>(content);
|
||||
App.tempRecordData = tempRecordData;
|
||||
|
||||
UIManager.ShowConfirm(App.GetLocalString("Reconnect"), App.GetLocalString("Did you want to reconnect the trip that was interrupted abnormally?"), () => { SceneManager.LoadScene("Ride"); });
|
||||
UIManager.ShowConfirm(App.GetLocalString("Reconnect"), App.GetLocalString("Did you want to reconnect the trip that was interrupted abnormally?"), () => { SceneManager.LoadScene("Ride"); },2,()=> {
|
||||
Helper.DelectDir(PFConstants.MapWorkoutRecordTempFolder);
|
||||
App.tempRecordData = null;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
if (canvasGroup.alpha == 0)
|
||||
{
|
||||
StartGame();
|
||||
//StartGame();
|
||||
transform.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
@@ -195,6 +195,8 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
canvasGroup.blocksRaycasts = false;
|
||||
depressFlag = true;
|
||||
slider.DOValue(process, 1);
|
||||
|
||||
StartGame();
|
||||
}
|
||||
protected virtual void Cancel(BaseEventData baseEvent)
|
||||
{
|
||||
|
||||
@@ -22,15 +22,21 @@ public class NewRouteItemController : MonoBehaviour
|
||||
|
||||
public void Initial(MapRouteAreaItem area, Dictionary<string, Texture> caches = null)
|
||||
{
|
||||
if (area.CoverImage != null)
|
||||
{
|
||||
Utils.DisplayImageTempDict(GetComponent<RawImage>(), area.CoverImage, caches);
|
||||
}
|
||||
transform.Find("Panel/Text").GetComponent<Text>().text = area.Name;
|
||||
GetComponent<Button>().onClick.RemoveAllListeners();
|
||||
GetComponent<Button>().onClick.AddListener(() =>
|
||||
{
|
||||
UIManager.ShowNewRouteDetailPanel(area);
|
||||
});
|
||||
StartCoroutine(displayImage(area, caches));
|
||||
}
|
||||
|
||||
IEnumerator displayImage(MapRouteAreaItem area, Dictionary<string, Texture> caches = null)
|
||||
{
|
||||
yield return null;
|
||||
if (area.CoverImage != null)
|
||||
{
|
||||
Utils.DisplayImageTempDict(GetComponent<RawImage>(), area.CoverImage, caches);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@ public class NewRouteOverviewController: PFUIPanel
|
||||
// });
|
||||
//#endif
|
||||
}
|
||||
int pageIndex = 0, pageSize = 10;
|
||||
int pageIndex = 0, pageSize = 5;
|
||||
bool isEnd = false,isLock = false;
|
||||
private void Refresh()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user