Game-Based Consensus of Hybrid Multiagent Systems