일반적인 TopLayer를 다른 레이어에 공통 메뉴로 추가해야하는 게임을 제작 중입니다. AndEngineCocos2dExtension을 사용하고 있습니다. 현재 코드 :android의 다른 CCLayer 위에 CClayer를 추가하는 방법
public class LobbyLayer extends CCLayer {
CPButton low, medium, high, friends, vip;
CCSprite low_selected, medium_selected, high_selected, friends_selected,
vip_selected;
CCNode tables[];
public LobbyLayer() throws IOException {
CCSprite background = new CCSprite("gfx/bg.jpg");
background.setPosition(400, 240);
attachChild(background);
CPTopLayer topLayer = new CPTopLayer();
topLayer.setPosition(0,240);
attachChild(topLayer);
이 내 두 번째 레이어는,이 (LobbyLayer)을위한 버튼이있는 welcomeLayer을 가지고, topLayer 내가 lobbyLayer의 상단에서 원하는 레이어입니다.
대신 에뮬레이터에서 검은 색 화면이 나타나는데 topLayer가 없으면 정상적으로 작동합니다. 도움을 청하십시오.