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