| | |
| | | [SerializeField] |
| | | private List<GameObject> other; |
| | | |
| | | private GameObject MainUI; |
| | | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | |
| | | |
| | | EventCenter.Ins.RemoveAllListener(); |
| | | TDAA_SDKManager.Ins.AddListener(); |
| | | EventCenter.Ins.Add((int)KTGMGemClient.EventType.ChangeScene, ChangeScene); |
| | | |
| | | isLogining = false; |
| | | |
| | | MainUI = transform.Find("Panel/MainPanel").gameObject; |
| | | MainUI.SetActive(false); |
| | | |
| | | //repairBtn = transform.Find("Panel/RepairBtn").GetComponent<Button>(); |
| | | startBtn = transform.Find("Panel/StartBtn").GetComponent<Button>(); |
| | |
| | | /// </summary> |
| | | void loginNext() |
| | | { |
| | | progressSlider.gameObject.SetActive(true); |
| | | startBtn.gameObject.SetActive(false); |
| | | |
| | | AudioSourceManager.Ins.Play(AudioEnum.UI); |
| | | TDAA_SDKManager.Ins.Statistics(2);//埋点 |
| | | |
| | | //GameConfig.isFirstStart = false; |
| | | StartCoroutine(loginMy()); |
| | | MainUI.SetActive(true); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | transform.Find("Panel/PlayerID").GetComponent<Text>().text = "玩家ID:" + GameConfig.Imei; |
| | | |
| | | loginNext(); |
| | | } |
| | | |
| | | private void ChangeScene() |
| | | { |
| | | progressSlider.gameObject.SetActive(true); |
| | | |
| | | StartCoroutine(loginMy()); |
| | | } |
| | | |
| | | |
| | |
| | | yield return new WaitForSeconds(waitTime); |
| | | int displayProgress = 0; |
| | | int toProgress = 0; |
| | | AsyncOperation op = SceneManager.LoadSceneAsync("LoadingScene"); |
| | | AsyncOperation op = SceneManager.LoadSceneAsync("Endless2D"); |
| | | // AsyncOperation op = SceneManager.LoadSceneAsync(GameConfig.NextSceneName); |
| | | op.allowSceneActivation = false; |
| | | while (op.progress < 0.9f) //此处如果是 <= 0.9f 则会出现死循环所以必须小0.9 |