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