Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Button repeating when timescale = 0

A topic by Dryn27 created Feb 13, 2019 Views: 376 Replies: 1
Viewing posts 1 to 2

Hey! I really love your Asset! I just discovered that the button repeating system wont work on my pause menu because I set the TimeScale to 0 when entering the pause menu. So I just changed two lines from Control.cs to these ones:

227- controlStates[0].holdTime += Time.unscaledDeltaTime;
228- controlStates[0].repeatTime -= Time.unscaledDeltaTime;

I don't know if it will cause any issues later, but for now it is working great.

That's all. Thank you for this great asset ;)

Developer

That actually looks pretty solid, I'll probably do something similar in a future version. Thanks for the heads-up :)