Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Button repeating when timescale = 0

A topic by TheGoodCompany created Feb 13, 2019 Views: 83 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 :)