- Home /
Events called every Nth day
Im working on a game to have events occur every set number of days. Is there a function/script component that allows for functions to be called using an if statement, for when a variabl is a multiple of ten for example.
Meaning
if(variable == multiple of ten){ function stuff }
Comment
Best Answer
Answer by Kiwasi · Dec 17, 2014 at 03:03 AM
if (variable % 10 == 0){
Debug.Log("Modulo is awesome");
}