目前我正在尝试使用适用于Android平台的libgdx实现简单的游戏。我已经实现了游戏,但不知道如何根据用户输入暂停和恢复游戏。请提出一些想法以及一些实用代码来实现它。我正在使用libgdx库中演示的简单游戏代码。谢谢。代码如下:publicclassDropimplementsApplicationListener{TexturedropImage;TexturebucketImage;SounddropSound;MusicrainMusic;SpriteBatchbatch;OrthographicCameracamera;Rectanglebucket;Arrayraindr