| | |
| | | using UnityEngine.Networking; |
| | | using Protobuf; |
| | | using Google.Protobuf; |
| | | using DG.Tweening; |
| | | |
| | | public class LoginUI : MonoBehaviour |
| | | { |
| | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | |
| | | AudioSourceManager.Ins.Play(AudioEnum.BGM1); |
| | | EventCenter.Ins.RemoveAllListener(); |
| | | |
| | | isLogining = false; |
| | |
| | | |
| | | if (!GameConfig.isFirstStart)//后续直接加载 |
| | | { |
| | | waitTime = 2f; |
| | | |
| | | OnClickLoginBtn(); |
| | | } |
| | | else |
| | | { |
| | | waitTime = 0f; |
| | | //第一次启动,初始化并且埋点 |
| | | TDAA_SDKManager.Ins.SDKInit(ChannelID.Gm.ToString()); |
| | | TDAA_SDKManager.Ins.Statistics(1);//成功加载登陆界面的人数 |
| | | } |
| | | } |
| | | |
| | | float waitTime; |
| | | |
| | | // private void OnEnable() |
| | | // { |
| | |
| | | |
| | | IEnumerator loginMy() |
| | | { |
| | | progressSlider.value = 0.0f; |
| | | System.GC.Collect(); |
| | | DOTween.Clear(); |
| | | Debug.Log("开始清理GC,清理DOTween"); |
| | | yield return new WaitForSeconds(waitTime); |
| | | int displayProgress = 0; |
| | | int toProgress = 0; |
| | | AsyncOperation op = SceneManager.LoadSceneAsync("Endless2D"); |