Recommended Posts

Hello guys, i make game in unity and i don't know how to make time script. i need to make how much points i have then gameplay begin to be faster.

I try on this way but wont work i don't know much to programming i'm beginner. Can any one help me? Thank you!

Sorry for my very bad english!

Script i made: https://pastebin.com/VCEhtCub

Share this post


Link to post
Share on other sites

https://docs.unity3d.com/ScriptReference/Time.html

deltaTime should cover everything you need by the sounds of it

EDIT: also take a look at Invoke and coroutines, but be mindful of which is best for a specific use case (http://www.tantzygames.com/blog/most-accurate-timer-in-unity/)

Edited by cmac

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now