if bulletsOn == true {
bullets -= 0.003
} else {
bullets += 0.001
}
when I put in form of ternary like so, I get error from compiler.
bulletsOn ? bullets -= 0.003 : bullets += 0.001
error: Result values in '? :' expression have mismatching types '()' and 'CGFloat'