QDQuickManager.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using ET;
  2. using UnityEngine;
  3. namespace GFGGame
  4. {
  5. public class QDQuickManager : SingletonBase<QDQuickManager>
  6. {
  7. public bool isLogining;
  8. public string uid;
  9. public void Init()
  10. {
  11. }
  12. public void Login()
  13. {
  14. // if (!string.IsNullOrEmpty(uid))
  15. // {
  16. // EventAgent.DispatchEvent(ConstMessage.ON_PLATFORM_SDK_LOGINED, uid);
  17. // return;
  18. // }
  19. // if (isLogining) return;
  20. // Debug.Log($"quick Login");
  21. // isLogining = true;
  22. DouYouSDK.Instance().ShowLogin();
  23. }
  24. public void OnCreateRole()
  25. {
  26. var zoneScene = GameGlobal.zoneScene;
  27. var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole();
  28. }
  29. public void OnEnterGame()
  30. {
  31. Debug.Log($"quick OnEnterGame");
  32. var zoneScene = GameGlobal.zoneScene;
  33. var roleInfo = zoneScene.GetComponent<RoleInfosComponent>().GetCurrentRole();
  34. }
  35. public void OnQuitToLoginView()
  36. {
  37. Debug.Log($"quick OnQuitToLoginView");
  38. }
  39. public void Logout()
  40. {
  41. Debug.Log($"quick Logout");
  42. }
  43. public void Pay(int buyID, int count, string orderID, long price)
  44. {
  45. ShopCfg shopCfg = ShopCfgArray.Instance.GetCfg(buyID);
  46. if(shopCfg == null)
  47. {
  48. Log.Error($"recharge {buyID} config not found!");
  49. return;
  50. }
  51. }
  52. public void Exit()
  53. {
  54. }
  55. }
  56. }