void LoginCallback(StardomAPIReply reply) { if (reply.Success) { api.GetUserProfile(UserProfileCallback); } else { Debug.Log("Failed login"); } }
void Awake() { api = StardomAPI.Instance; api.RegisterDisconnectHandler(delegate { Debug.Log("Disconnected"); if (apiInitDone) { api.GetUserProfile(UserProfileCallback); } }); }
void TestUserProfile() { Debug.Log("ApiTester: Testing user profile"); Debug.Log("ApiTester: ==================>"); api.GetUserProfile(UserProfileCallback); }