我需要處理觸摸並不會消耗它。可以在SpriteKit中執行嗎? 我想保持代碼儘可能通用。處理觸摸而不消耗
繼documentation我嘗試這樣做:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//Do some work with the touch
//Forward it to next responder(node bellow)
[super touchesBegan:touches withEvent:event];
}
不過倒是沒有得到轉發。
我的課是SKNode的子類。
發佈文檔鏈接。 – trojanfoe
您提供的鏈接與SpriteKit無關。 – trojanfoe
@trojanfoe SKNode是UIResponder的子類 –