Answers for "how to call something every couple of seconds C# unity"

C#
0

how to call something every couple of seconds C# unity

public float period = 0.0f; 
void Update() {     
if (period > [Time Interval])     
{         
	//Do Stuff         
	period = 0;     
}
period += UnityEngine.Time.deltaTime; }
Posted by: Guest on October-10-2021

Code answers related to "how to call something every couple of seconds C# unity"

C# Answers by Framework

Browse Popular Code Answers by Language