As history has shown, when presented with an existential threat to the group, humans are often willing to drop their immediate plans and sign up to fight. Perhaps we're wired that way.
Bring on UBI. And bring on a global 'war economy' to transition us to a zero carbon energy infrastructure.