123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using ET;
- using UnityEngine;
- namespace GFGGame
- {
- public class QDQuickManager : SingletonBase<QDQuickManager>
- {
- public bool isLogining;
- public string uid;
- public void Init()
- {
-
- }
- public void Login()
- {
- // if (!string.IsNullOrEmpty(uid))
- // {
- // EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, uid);
- // return;
- // }
- // if (isLogining) return;
- // Debug.Log($"quick Login");
- // isLogining = true;
- DouYouSDK.Instance().ShowLogin();
- }
- public void OnCreateRole()
- {
- var zoneScene = GameGlobal.zoneScene;
- var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole();
- }
- public void OnEnterGame()
- {
- Debug.Log($"quick OnEnterGame");
- var zoneScene = GameGlobal.zoneScene;
- var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole();
- }
- public void OnQuitToLoginView()
- {
- Debug.Log($"quick OnQuitToLoginView");
- }
- public void Logout()
- {
- Debug.Log($"quick Logout");
- }
- public void Pay(int buyID, int count, string orderID, long price)
- {
- ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(buyID);
- if(shopCfg == null)
- {
- Log.Error($"recharge {buyID} config not found!");
- return;
- }
- }
- public void Exit()
- {
- }
- }
- }
|