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; }
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 }