阅读背景:

Swift和SpriteKit -使用break切换语句

来源:互联网 

I have a switch statement that that determines which node name was touched. I have two nodes that overlap. If the top one is touched, I want only the code for the top node case to be executed. So I put a break after that case. Even so, the code for both cases is executed. What is the best way to only trigger the top case? Below is the code:I have a switch statement that that determines




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: