static SmartLockCredentials() { if (Application.isEditor) { theInstance = new Google.SmartLock.Platforms.DummySmartLockCredentials(); } else { #if UNITY_ANDROID theInstance = Google.SmartLock.Platforms.Android.SmartLockAndroid.GetCredentialAPI(); #elif UNITY_IOS // currently no support for iOS, return a dummy api with // and empty credential. theInstance = DummySmartLockCredentials(); ((DummySmartLockCredentials)theInstance).SetSampleCredential( new Credential("", "", "", "", "", "", "")); #else theInstance = new Google.SmartLock.Platforms.DummySmartLockCredentials(); #endif } }
static SmartLockCredentials() { if (Application.isEditor) { theInstance = new Google.SmartLock.Platforms.DummySmartLockCredentials(); } else { #if UNITY_ANDROID theInstance = Google.SmartLock.Platforms.Android.SmartLockAndroid.GetCredentialAPI(); #elif UNITY_IOS // currently no support for iOS, return a dummy api with // and empty credential. theInstance = DummySmartLockCredentials(); ((DummySmartLockCredentials)theInstance).SetSampleCredential( new Credential("","","","","","","")); #else theInstance = new Google.SmartLock.Platforms.DummySmartLockCredentials(); #endif } }