Exemplo n.º 1
0
 public void AskFriendRequestUpdate(object Internal)
 {
     while (true)
     {
         Thread.Sleep((int)Internal);
         if (PlayerInfo.friendRequest.Count > 0)
         {
             CFriendRequest msg = new CFriendRequest();
             MyNetwork.Send(msg);
         }
     }
 }
Exemplo n.º 2
0
 public void AskMallUpdate(object Internal)
 {
     while (true)
     {
         Thread.Sleep((int)Internal);
         //Debug.Log("sleep 1 mins");
         if (TreasureInfo.treasureAttri.Count > 0)
         {
             CMall msg = new CMall();
             MyNetwork.Send(msg);
         }
     }
 }