gpt4 book ai didi

iphone - 触摸开始 :(NSSet *)touches withEvent:(UIEvent *)event doesn't get called

转载 作者:行者123 更新时间:2023-11-29 04:58:01 26 4
gpt4 key购买 nike

我正在制作一个cocos2d游戏,但无法调用touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event。除了包含此功能之外,我还应该做些什么吗?

最佳答案

当使用 cocos2d 进行触摸时,您应该使用以下方法

- (void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

关于iphone - 触摸开始 :(NSSet *)touches withEvent:(UIEvent *)event doesn't get called,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7582926/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com