Answer the question
In order to leave comments, you need to log in
The timer depends on fps. How to do it right?
public int numbers = 0;
public int numbersLim = 200;
void Update()
{
numbers++;
if (numbers > numbersLim)
{
Shot();
numbers = 0;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question