cocos2d self.touchEnabled =找不到

约翰
-(id)init
{
  if ((self = [super init]))
  {

    [self setupTitle];
    self.touchEnabeled = YES;

  }
return self;
}

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

[[CCDirector sharedDirector]
replaceScene:[CCTransitionFade transitionWithDuration:1.0 scene:[GameScene node]]];
CCSprite *start = (CCSprite *)
[self getChildByTag:1]; [start stopAllActions];
start.visible = NO;

 }

无法获取self.touchEnabled = YES; 工作它会产生错误;

在“ TitleLayer”的对象类型上找不到touchEnabled

维吉尔·德比克

在旧版本中,代码为:

self.touchEnabled = YES;

尝试仅复制并放入。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章