예제 #1
0
 public void AddIncommingFriend(IncomingFriendAddedEvent e, SingleNode <FriendsComponent> userFriends)
 {
     userFriends.component.IncommingFriendsIds.Add(e.FriendId);
     MarkUserIfEntityLoaded <IncommingFriendComponent>(e.FriendId);
 }
예제 #2
0
 public void AddIncommingFriend(IncomingFriendAddedEvent e, SingleNode <FriendsBadgeCounterComponent> friends, [JoinAll] Optional <SingleNode <OpenFriendsScreenButtonComponent> > button)
 {
     friends.component.Counter++;
     this.UpdateBadgeIfPresent(friends, button);
 }