Exemple #1
0
 void OnFriendsRefuseHandler(C2G.FriendsRefuse packet, C2G.FriendsAckBase ack)
 {
     m_Friends.Clear();
     InitItem();
     Network.Instance.NotifyMenu.is_friends_requested = false;
     UpdateNotify();
 }
Exemple #2
0
 public void OnClickRefuse()
 {
     C2G.FriendsRefuse packet = new C2G.FriendsRefuse();
     packet.account_idx = m_Info.account_idx;
     packet.is_all      = false;
     Network.GameServer.JsonAsync <C2G.FriendsRefuse, C2G.FriendsAckBase>(packet, OnFriendsRefuseHandler);
 }
Exemple #3
0
 void OnFriendsRefuseHandler(C2G.FriendsRefuse packet, C2G.FriendsAckBase ack)
 {
     StateInfo.state = eFriendsState.Deleted;
     gameObject.SetActive(false);
     if (OnCallback != null)
     {
         OnCallback(m_Info);
     }
 }
Exemple #4
0
 public void OnClickRefuseAll()
 {
     if (m_Friends.Count == 0)
     {
         return;
     }
     C2G.FriendsRefuse packet = new C2G.FriendsRefuse();
     packet.account_idx = 0;
     packet.is_all      = true;
     Network.GameServer.JsonAsync <C2G.FriendsRefuse, C2G.FriendsAckBase>(packet, OnFriendsRefuseHandler);
 }