增加对是否使用SDK的判断 GameConfig.useSDK
| | |
| | | - target: {fileID: 3047146065604292524, guid: b9e71f5997dfccf469dc973bc541697e, |
| | | type: 3} |
| | | propertyPath: m_LocalPosition.z |
| | | value: -72 |
| | | value: 0 |
| | | objectReference: {fileID: 0} |
| | | - target: {fileID: 3047146065604292524, guid: b9e71f5997dfccf469dc973bc541697e, |
| | | type: 3} |
| | |
| | | public static string NextSceneName = "Endless2D"; |
| | | // public static string NextSceneName = "Endless"; |
| | | |
| | | public static bool useSDK = false; |
| | | public static string Imei; |
| | | public static bool isFirstStart = true; |
| | | |
| | |
| | | if (!isLogining) |
| | | { |
| | | // CoderM: 在这里要使用SDK来进行登录了 |
| | | if (GameConfig.useSDK) |
| | | { |
| | | //设置login的回调 |
| | | SDKCallBack.ins.setNextAction("login", loginNext); |
| | | SDKManager.ins.sdk.login(); |
| | | |
| | | //progressSlider.gameObject.SetActive(true); |
| | | //startBtn.gameObject.SetActive(false); |
| | | |
| | | //AudioSourceManager.Ins.Play(AudioEnum.UI); |
| | | //TDAA_SDKManager.Ins.Statistics(2);//埋点 |
| | | |
| | | //GameConfig.isFirstStart = false; |
| | | //StartCoroutine(loginMy()); |
| | | } |
| | | else |
| | | { |
| | | //没有使用SDK |
| | | loginNext(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | DOTween.Init(true, true, LogBehaviour.Verbose).SetCapacity(200, 10); |
| | | |
| | | root = new GameObject("ManagerRoot"); |
| | | if (GameConfig.useSDK) |
| | | root.AddComponent<SDKCallBack>(); |
| | | root.AddComponent<DoNotDestory>(); |
| | | root.AddComponent<MasterSocket>(); |