【发布时间】:2023-04-10 00:45:01
【问题描述】:
我在屏幕上添加了一个组
//Code in show() method of my screen
MyGroup myGroup = new MyGroup();
Stage stage = new Stage();
stage.add(myGroup);
//And also there are few more actors which are omitted
Gdx.input.setInputProcessor(stage);
//Code in my group
public MyGroup extends Group implements InputProcessor{
//Many methods and attributes and a constructor
//Overridden methods of input listener.
在我的组中,我有 5 个演员可以相互交换,所以我不想处理单个演员的任何输入。我想在群里做。
但是当我触摸/触摸拖动时没有调用任何方法。
请帮忙。
【问题讨论】: