1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // using System.Collections;
- // using cn.sharesdk.unity3d;
- // using UnityEngine;
- //
- // namespace GFGGame.Launcher
- // {
- // public class QDShareManagerInit : SingletonBase<QDShareManagerInit>
- // {
- // public IShareSDKListener shareSDKListener;
- //
- // public GameObject gameObject;
- //
- // public MobSDK mobsdk;
- //
- // public ShareSDK shareSDK;
- //
- // public void InitSDK()
- // {
- // ShareSDKKHandler eventHandler = GameObject.Find("ShareSDKGameObject")
- // ?.GetComponent<ShareSDKKHandler>();
- // if (eventHandler == null)
- // {
- // gameObject = new GameObject("ShareSDKGameObject");
- // gameObject.AddComponent<ShareSDKKHandler>();
- // GameObject.DontDestroyOnLoad(gameObject);
- // }
- //
- // GameObject mainCameraObject = GameObject.Find("GameLauncher");
- // mobsdk = mainCameraObject.GetComponent<MobSDK>();
- // shareSDK = mainCameraObject.GetComponent<ShareSDK>();
- // }
- //
- // public class ShareSDKKHandler : AbShareSDKHandler
- // {
- // public override void OnAuthResult(int reqID, ResponseState state, PlatformType type, Hashtable result)
- // {
- // Debug.Log($"OnAuthResult xx");
- // QDShareManagerInit.Instance.shareSDKListener.OnAuthResult(reqID, state, type, result);
- // }
- //
- // public override void OnGetUserInfoResult(int reqID, ResponseState state, PlatformType type,
- // Hashtable result)
- // {
- // Debug.Log($"OnGetUserInfoResult xx");
- // QDShareManagerInit.Instance.shareSDKListener.OnGetUserInfoResult(reqID, state, type, result);
- // }
- //
- // public override void OnShareResult(int reqID, ResponseState state, PlatformType type, Hashtable result)
- // {
- // Debug.Log($"OnShareResult xx" + (int)type);
- // QDShareManagerInit.Instance.shareSDKListener.OnShareResult(reqID, state, type, result);
- // }
- //
- // public override void OnGetFriendsResult(int reqID, ResponseState state, PlatformType type,
- // Hashtable result)
- // {
- // Debug.Log($"OnGetFriendsResult xx");
- // QDShareManagerInit.Instance.shareSDKListener.OnGetFriendsResult(reqID, state, type, result);
- // }
- //
- // public override void OnFollowFriendResult(int reqID, ResponseState state, PlatformType type,
- // Hashtable result)
- // {
- // Debug.Log($"OnFollowFriendResult xx");
- // QDShareManagerInit.Instance.shareSDKListener.OnFollowFriendResult(reqID, state, type, result);
- // }
- //
- // public override void OnIsClientValidForAndroidResult(int reqID, ResponseState state, PlatformType type,
- // Hashtable result)
- // {
- // Debug.Log($"OnIsClientValidForAndroidResult xx");
- // QDShareManagerInit.Instance.shareSDKListener
- // .OnIsClientValidForAndroidResult(reqID, state, type, result);
- // }
- // }
- // }
- // }
|