示例#1
0
        public static void Init(OKInitCallback callback = null)
        {
            if (IsInitialized)
            {
                Debug.Log("Odnoklassniki API already initialized");
                callback(true);
                return;
            }
#if UNITY_ANDROID
            odnoklassniki = new GameObject("Odnoklassniki").AddComponent <AndroidOdnoklassniki>();
            odnoklassniki.Init(callback);
#elif UNITY_IOS
            odnoklassniki = new GameObject("Odnoklassniki").AddComponent <IOSOdnoklassniki>();
            odnoklassniki.Init(callback);
#else
            Debug.LogError("Odnoklassniki Unity SDK Unavailable: Set platform to either Android or iOS");
            odnoklassniki = null;
            callback(false);
#endif
        }
示例#2
0
 public OdnoklassnikiAdapter(IOdnoklassniki odnoklassniki)
 {
     _odnoklassniki = odnoklassniki;
 }
示例#3
0
 public static void Init(OKInitCallback callback = null)
 {
     if (IsInitialized)
     {
         Debug.Log("Odnoklassniki API already initialized");
         callback(true);
         return;
     }
     #if UNITY_ANDROID
     odnoklassniki = new GameObject("Odnoklassniki").AddComponent<AndroidOdnoklassniki>();
     odnoklassniki.Init(callback);
     #elif UNITY_IOS
     odnoklassniki = new GameObject("Odnoklassniki").AddComponent<IOSOdnoklassniki>();
     odnoklassniki.Init(callback);
     #else
     Debug.LogError("Odnoklassniki Unity SDK Unavailable: Set platform to either Android or iOS");
     odnoklassniki = null;
     callback(false);
     #endif
 }
 public OdnoklassnikiAdapter(IOdnoklassniki odnoklassniki)
 {
     _odnoklassniki = odnoklassniki;
 }