|  | @@ -32,9 +32,9 @@ namespace GFGGame
 | 
											
												
													
														|  |          //评价
 |  |          //评价
 | 
											
												
													
														|  |          private List<int> CustemsNum = new List<int>()
 |  |          private List<int> CustemsNum = new List<int>()
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  | -            240,
 |  | 
 | 
											
												
													
														|  | -            180,
 |  | 
 | 
											
												
													
														|  | -            120,
 |  | 
 | 
											
												
													
														|  | 
 |  | +            0,
 | 
											
												
													
														|  | 
 |  | +            0,
 | 
											
												
													
														|  | 
 |  | +            0,
 | 
											
												
													
														|  |          };
 |  |          };
 | 
											
												
													
														|  |          private bool isMove;
 |  |          private bool isMove;
 | 
											
												
													
														|  |          private bool isMerge;
 |  |          private bool isMerge;
 | 
											
										
											
												
													
														|  | @@ -66,8 +66,8 @@ namespace GFGGame
 | 
											
												
													
														|  |              this.viewCom = _ui.target;
 |  |              this.viewCom = _ui.target;
 | 
											
												
													
														|  |              isfullScreen = true;
 |  |              isfullScreen = true;
 | 
											
												
													
														|  |              _ui.m_numList.itemRenderer = ListNumItem;
 |  |              _ui.m_numList.itemRenderer = ListNumItem;
 | 
											
												
													
														|  | -            _ui.target.onTouchBegin.Add(OnClickBegin);
 |  | 
 | 
											
												
													
														|  | -            _ui.target.onTouchEnd.Add(OnClickEnd);
 |  | 
 | 
											
												
													
														|  | 
 |  | +            _ui.m_numList.onTouchBegin.Add(OnClickBegin);
 | 
											
												
													
														|  | 
 |  | +            _ui.m_numList.onTouchEnd.Add(OnClickEnd);
 | 
											
												
													
														|  |              _ui.m_backBtn.onClick.Add(OnClickBtnBack);
 |  |              _ui.m_backBtn.onClick.Add(OnClickBtnBack);
 | 
											
												
													
														|  |              _ui.m_mergeBtn.onClick.Add(OnClickMergeTips);
 |  |              _ui.m_mergeBtn.onClick.Add(OnClickMergeTips);
 | 
											
												
													
														|  |              Map = new int[rows, columns];
 |  |              Map = new int[rows, columns];
 | 
											
										
											
												
													
														|  | @@ -129,17 +129,20 @@ namespace GFGGame
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          private void UpdateView()
 |  |          private void UpdateView()
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  | -            time = 0;
 |  | 
 | 
											
												
													
														|  | 
 |  | +            time = 1;
 | 
											
												
													
														|  |              score = 0;
 |  |              score = 0;
 | 
											
												
													
														|  |              targetNum = Merge2048GameArray.Instance.GetCfg(gameID).targetNum;
 |  |              targetNum = Merge2048GameArray.Instance.GetCfg(gameID).targetNum;
 | 
											
												
													
														|  |              CustemsNum[0] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar3;
 |  |              CustemsNum[0] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar3;
 | 
											
												
													
														|  |              CustemsNum[1] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar2;
 |  |              CustemsNum[1] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar2;
 | 
											
												
													
														|  |              CustemsNum[2] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar1;
 |  |              CustemsNum[2] = Merge2048GameArray.Instance.GetCfg(gameID).timeStar1;
 | 
											
												
													
														|  |              _ui.m_star3.url = "ui://MiniGame/tb_zx_pt_star";
 |  |              _ui.m_star3.url = "ui://MiniGame/tb_zx_pt_star";
 | 
											
												
													
														|  | -            _ui.m_target.url = string.Format("ui://MiniGame/sgll2_{0}", targetNum);
 |  | 
 | 
											
												
													
														|  | 
 |  | +            _ui.m_target.url = ResPathUtil.GetMiniGamePicPath(Merge2048CfgArray.Instance.GetCfgsByidAndnum(gameDate.subType, targetNum)[0].resName);
 | 
											
												
													
														|  |              _ui.m_score.text = string.Format("分数:{0}", score.ToString());
 |  |              _ui.m_score.text = string.Format("分数:{0}", score.ToString());
 | 
											
												
													
														|  |              _ui.m_score.visible = false;
 |  |              _ui.m_score.visible = false;
 | 
											
												
													
														|  | 
 |  | +            _ui.m_time.visible = false;
 | 
											
												
													
														|  | 
 |  | +            _ui.m_timeNum.visible = false;
 | 
											
												
													
														|  |              rand = new System.Random();
 |  |              rand = new System.Random();
 | 
											
												
													
														|  | 
 |  | +            UpdateStar();
 | 
											
												
													
														|  |              Timers.inst.Add(1.0f, 0, UpdateTime);
 |  |              Timers.inst.Add(1.0f, 0, UpdateTime);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          private void UpdateScore()
 |  |          private void UpdateScore()
 | 
											
										
											
												
													
														|  | @@ -481,22 +484,22 @@ namespace GFGGame
 | 
											
												
													
														|  |          private void OnClickEnd()
 |  |          private void OnClickEnd()
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  |                  touchSecond = Input.mousePosition;//记录拖动的位置
 |  |                  touchSecond = Input.mousePosition;//记录拖动的位置
 | 
											
												
													
														|  | -                if (touchSecond.x < touchFirst.x && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if ((touchSecond.x - touchFirst.x) < -80 && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
 | 
											
												
													
														|  |                  {
 |  |                  {
 | 
											
												
													
														|  |                      //向左滑动
 |  |                      //向左滑动
 | 
											
												
													
														|  |                      Move(Map, Direction.left);
 |  |                      Move(Map, Direction.left);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  | -                if (touchSecond.x > touchFirst.x && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if ( (touchSecond.x - touchFirst.x) > 80 && Math.Abs(touchSecond.x - touchFirst.x) > Math.Abs(touchSecond.y - touchFirst.y))
 | 
											
												
													
														|  |                  {
 |  |                  {
 | 
											
												
													
														|  |                      //向右滑动
 |  |                      //向右滑动
 | 
											
												
													
														|  |                      Move(Map, Direction.right);
 |  |                      Move(Map, Direction.right);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  | -                if (touchSecond.y < touchFirst.y && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if ((touchSecond.y - touchFirst.y) < -80 && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
 | 
											
												
													
														|  |                  {
 |  |                  {
 | 
											
												
													
														|  |                      //向下滑动
 |  |                      //向下滑动
 | 
											
												
													
														|  |                      Move(Map, Direction.down);
 |  |                      Move(Map, Direction.down);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  | -                if (touchSecond.y > touchFirst.y && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
 |  | 
 | 
											
												
													
														|  | 
 |  | +                if ((touchSecond.y - touchFirst.y) > 80 && Math.Abs(touchSecond.y - touchFirst.y) > Math.Abs(touchSecond.x - touchFirst.x))
 | 
											
												
													
														|  |                  {
 |  |                  {
 | 
											
												
													
														|  |                      //向上滑动
 |  |                      //向上滑动
 | 
											
												
													
														|  |                      Move(Map, Direction.up);
 |  |                      Move(Map, Direction.up);
 | 
											
										
											
												
													
														|  | @@ -512,7 +515,7 @@ namespace GFGGame
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  |              _ui.m_timeNum.text = sec_to_hms(time);
 |  |              _ui.m_timeNum.text = sec_to_hms(time);
 | 
											
												
													
														|  |              time++;
 |  |              time++;
 | 
											
												
													
														|  | -            UpdateStar();
 |  | 
 | 
											
												
													
														|  | 
 |  | +            //UpdateStar();
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          private void UpdateStar()
 |  |          private void UpdateStar()
 | 
											
										
											
												
													
														|  | @@ -543,9 +546,9 @@ namespace GFGGame
 | 
											
												
													
														|  |                      _ui.m_star3.url = "ui://MiniGame/tb_zx_pt_star";
 |  |                      _ui.m_star3.url = "ui://MiniGame/tb_zx_pt_star";
 | 
											
												
													
														|  |                      break;
 |  |                      break;
 | 
											
												
													
														|  |                  default:
 |  |                  default:
 | 
											
												
													
														|  | -                    _ui.m_star1.url = "ui://MiniGame/tb_zx_pt_star_grey";
 |  | 
 | 
											
												
													
														|  | -                    _ui.m_star2.url = "ui://MiniGame/tb_zx_pt_star_grey";
 |  | 
 | 
											
												
													
														|  | -                    _ui.m_star3.url = "ui://MiniGame/tb_zx_pt_star_grey";
 |  | 
 | 
											
												
													
														|  | 
 |  | +                    _ui.m_star1.visible = false;
 | 
											
												
													
														|  | 
 |  | +                    _ui.m_star2.visible = false;
 | 
											
												
													
														|  | 
 |  | +                    _ui.m_star3.visible = false;
 | 
											
												
													
														|  |                      break;
 |  |                      break;
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |          }
 |  |          }
 |