static void Login(LumosUser user) { user.Authenticate(success => { if (success) { Debug.Log("Authenticated, assigned as Social.localUser"); } else { Debug.LogError("Failed to authenticate"); } LumosSocialDemoCustomLoginGUI.LoginComplete(success); }); }
static void Register(LumosUser user) { LumosSocial.RegisterUser(user, success => { if (success) { PlayerPrefs.SetInt(hasRegisteredKey, 1); Debug.Log("Registered and authenticated, assigned as Social.localUser"); } else { Debug.LogError("Unable to register user"); } LumosSocialDemoCustomLoginGUI.RegistrationComplete(success); }); }