Answers for "Unity Timer every x seconds"

C#
-1

Unity Timer every x seconds

private float nextActionTime = 0.0f; 
 public float period = 0.1f;  
 void Update () {     
 if (Time.time > nextActionTime ) {
 nextActionTime += period;
 // execute block of code here
 	}
 }
Posted by: Guest on August-04-2021

Code answers related to "Unity Timer every x seconds"

C# Answers by Framework

Browse Popular Code Answers by Language