/// <summary> /// 小游戏失败 /// </summary> /// <param name="obj"></param> private void OnGetCrossRoadGameFailure(Message obj) { gameModules.Stop(); //弹出UI 失败 LogWarp.LogError("游戏失败"); PageMgr.ShowPage <UIGameFailPage>(); }
/// <summary> /// 小游戏失败 /// </summary> /// <param name="obj"></param> private void OnGetCrossRoadGameFailure(Message obj) { gameModules.Stop(); //float timeCount = 0.1f; //DOTween.To(() => timeCount, a => timeCount = a, 0.1f, timeLapseFailPage).OnComplete(new TweenCallback(delegate //{ // PageMgr.ShowPage<UIGameFailPage>(); //})); PageMgr.ShowPage <UIGameFailPage>(); //弹出UI 失败 LogWarp.LogError("游戏失败"); }