//初始化回调对象 public static SuperSYSDKCallback InitCallback() { UnityEngine.Debug.LogError("Callback->InitCallback"); lock (_lock) { if (_instance == null) { GameObject callback = GameObject.Find("(SuperSYSDK_callback)"); if (callback == null) { callback = new GameObject("(SuperSYSDK_callback)"); _instance = callback.AddComponent <SuperSYSDKCallback>(); UnityEngine.Object.DontDestroyOnLoad(callback); } else { _instance = callback.GetComponent <SuperSYSDKCallback>(); } } return(_instance); } }
//初始化 public virtual void Init() { SuperSYSDKCallback.InitCallback(); }