Hello Guys ,
I am new to Unity and i am developing a 2d multiplayer game
I would like to increase the velocity of object at certain intervals of time…
Tried a lot but can’t
Help is so thank full
Hello Guys ,
I am new to Unity and i am developing a 2d multiplayer game
I would like to increase the velocity of object at certain intervals of time…
Tried a lot but can’t
Help is so thank full
you can use coroutines:
or (more simple for beginner)
float desiredDelay = 1234f;
float timeToCall = 0f;
void Update()
{
timeToCall += Time.deltaTime;
if(timeToCall >= desiredDelay)
{
timeToCall = 0f;
MethodYouWantToCall();
}
}