예제 #1
0
 public void RejectFriend(ButtonClickEvent e, SingleNode <RejectFriendButtonComponent> button, [JoinByScreen] ProfileScreenWithUserGroupNode profileScreen, [JoinByUser] IncommingFriendNode incommingFriend, [JoinAll] SingleNode <SelfUserComponent> selfUser)
 {
     base.ScheduleEvent(new RejectFriendEvent(incommingFriend.Entity), selfUser);
 }
예제 #2
0
 public void ShowIncommingFriendButtons(NodeAddedEvent e, ProfileScreenWithUserGroupNode profileScreen, [Context, JoinByUser] IncommingFriendNode incommingFriend)
 {
     profileScreen.profileScreen.FriendRequestRow.SetActive(true);
     profileScreen.profileScreen.AddToFriendRow.SetActive(false);
 }
예제 #3
0
 public void HideIncommingFriendButtons(NodeRemoveEvent e, IncommingFriendNode incommingFriend, [JoinByUser] ProfileScreenWithUserGroupNode profileScreen)
 {
     profileScreen.profileScreen.FriendRequestRow.SetActive(false);
     profileScreen.profileScreen.AddToFriendRow.SetActive(true);
 }