Example #1
0
 public void EnableInBattleState(NodeAddedEvent e, FriendInMatchMakingNode user, [JoinByUser, Context, Combine] UserLabelStateNode userLabel)
 {
     if (!user.Entity.HasComponent <BattleGroupComponent>())
     {
         userLabel.userLabelState.UserInBattle();
     }
 }
Example #2
0
 public void DisableInBattleState(NodeRemoveEvent e, FriendInMatchMakingNode user, [JoinByUser, Context, Combine] UserLabelStateNode userLabel)
 {
     if (!user.Entity.HasComponent <BattleGroupComponent>())
     {
         userLabel.userLabelState.UserOutBattle(user.Entity.HasComponent <UserOnlineComponent>());
     }
 }