void OnFriendsRefuseHandler(C2G.FriendsRefuse packet, C2G.FriendsAckBase ack) { m_Friends.Clear(); InitItem(); Network.Instance.NotifyMenu.is_friends_requested = false; UpdateNotify(); }
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); }
void OnFriendsRefuseHandler(C2G.FriendsRefuse packet, C2G.FriendsAckBase ack) { StateInfo.state = eFriendsState.Deleted; gameObject.SetActive(false); if (OnCallback != null) { OnCallback(m_Info); } }
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); }