public void LoginAsGuest(string guestName) { Assert.IsFalse(string.IsNullOrEmpty(guestName)); if (Status == LoginStatus.Uninitialized) { Debug.LogWarning("Attempting to login when CognitoIdentity is not initialized."); return; } Logout(); //there is an id for this guest string cachedId = m_guestIdCache.GetIdByName(guestName); if (cachedId != null) { m_credentials.CacheIdentityId(cachedId); } RefreshIdentity(guestName); }