// using System.Collections; // using cn.sharesdk.unity3d; // using UnityEngine; // // namespace GFGGame.Launcher // { // public class QDShareManagerInit : SingletonBase // { // public IShareSDKListener shareSDKListener; // // public GameObject gameObject; // // public MobSDK mobsdk; // // public ShareSDK shareSDK; // // public void InitSDK() // { // ShareSDKKHandler eventHandler = GameObject.Find("ShareSDKGameObject") // ?.GetComponent(); // if (eventHandler == null) // { // gameObject = new GameObject("ShareSDKGameObject"); // gameObject.AddComponent(); // GameObject.DontDestroyOnLoad(gameObject); // } // // GameObject mainCameraObject = GameObject.Find("GameLauncher"); // mobsdk = mainCameraObject.GetComponent(); // shareSDK = mainCameraObject.GetComponent(); // } // // 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); // } // } // } // }