state|=0b10// to "activate" first avatarstate|=0b01// to "activate" second avatarstate&=0b01// to "deactivate" first avatarstate&=0b10// to "deactivate" second avatarBoolean(state&0b10)// to check if first avatar is "activated"Boolean(state&0b01)// to check if second avatar is "activated"
This code could be simplified with binary masks:
Ooh that's super slick, thanks so much for the suggestion!