Skip to content

Instantly share code, notes, and snippets.

@aprius
Created October 16, 2023 07:05
Show Gist options
  • Save aprius/2856512a9047c34951e5b521c2439099 to your computer and use it in GitHub Desktop.
Save aprius/2856512a9047c34951e5b521c2439099 to your computer and use it in GitHub Desktop.
public int timeSlicing = 2;
public void Update()
{
if (Time.frameCount % timeSlicing == 0)
{
// TODO
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment