开发者

Targeting Multiple Scenes

开发者 https://www.devze.com 2023-02-15 00:02 出处:网络
I have a scene that is displayed before a level, where the images are loaded. During this I show text about the game. I would like the text to appeal to what Level it is. How can I do something lik开发

I have a scene that is displayed before a level, where the images are loaded. During this I show text about the game. I would like the text to appeal to what Level it is. How can I do something lik开发者_运维技巧e "if Level is 5-9", and then the rest of the code.

Basically my way of explaining is:

       if (currentLevel.Level 5-9) { 
//do stuff 
    }

By Level5-9 I mean Levels 5, 6, 7, 8, 9. Tell me if you need more explanation.


if (currentLevel >=5 && currentLevel <= 9) { 
    // do stuff 
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号