简体   繁体   English

Unity:我将如何为无尽的亚军游戏创建一个加电系统? [等候接听]

[英]Unity: How would I go about creating a power up system into my endless runner game? [on hold]

我想在无尽的跑步者游戏(如地铁冲浪者)中实现加电系统,我想实现诸如硬币磁石,记分booster和大型headstart之类的增强功能。

This is very broad and we dont have any idea how your game looks like but for the headstart just start at that position? 这是非常广泛的,我们不知道您的游戏看起来如何,但是对于领先者而言,只是从该位置开始? And give the player the score he would have at this position? 并给玩家该位置的分数? Scorebooster ist easy just multiply the score you get by the powerup value (for example 1.5f) and cast it back to an int. Scorebooster ist只需将获得的分数乘以powerup值(例如1.5f),然后将其转换回int。 Coin magnet is also pretty simple i guess, just make the coin collector trigger bigger? 我猜硬币磁铁也很简单,只是使硬币收集器的触发器更大?

Hope that helps and really try to give us more information next time as well as how you have tried it so far so we can see why its not working 希望能对您有所帮助,并能在下次尝试为我们提供更多信息,以及您到目前为止如何尝试使用,以便我们了解为什么它不起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM