示例#1
0
 void Awake()
 {
     api = StardomAPI.Instance;
     api.RegisterDisconnectHandler(delegate
     {
         Debug.Log("Disconnected, user disconnected");
     });
 }
示例#2
0
 void Awake()
 {
     api = StardomAPI.Instance;
     api.RegisterDisconnectHandler(delegate
     {
         Debug.Log("Disconnected");
         if (apiInitDone)
         {
             api.GetUserProfile(UserProfileCallback);
         }
     });
 }