using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using DG.Tweening; using Sequence = DG.Tweening.Sequence; namespace GuruClient { public class UIGameView : MonoBehaviour { public Transform patchesScrollView; public Slider sldLevelProgress; public Transform tipsFinger; public GuruScrollRect sr; public Text txtProgress; public GameObject patchTemplate; public Transform puzzleWhole; public Transform puzzleBaseImg; public Transform puzzleBaseImgLines; public GameObject patchesPool; public GameObject btnBack; public GameObject btnTips; public GameObject btnDebugDrag; public Texture noiseTexture; public GameObject objStageWinFx; public GameObject objDotProgress; private GameModel _gameModel; private Sequence _myTipsSequence = null; //已完成的拼图 private List _completePatche = new List(); private GameObject _roleTemplate; //手指抬起时间 private double _fingerUpTime = 0f; //第一关的自动提示 private int _autoTipsTimer; private int _levelDurationTimer; //自动游戏的Timer private int _autoPlayTimer = 0; private float _lastMatchTime; private bool _hasGuide = false; private bool _isFirstRefresh = true; //是否已经开始下一关下载 private bool _hasStartDownloadNextLevel = false; private void Awake() { } // Start is called before the first frame update void Start() { EventManager.AddListenner("UPDATE_PROGRESS", UpdateProgress); EventManager.AddListenner("START_NEXT_LEVEL", OnNextLevel); EventManager.AddListenner("UPDATE_PROGRESS_DOT", UpdateProgressDot); btnTips.GetComponent