Skip to main content
Removing update meta-tag, as discussed here https://gamedev.meta.stackexchange.com/a/2510/39518
Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401
Tweeted twitter.com/StackGameDev/status/872517195657605120
edited title
Link
doppelgreener
  • 7.3k
  • 7
  • 44
  • 69

Unity3d: Execute a function for ten seconds and disable it for two seconds?

Source Link
MrRobot9
  • 331
  • 1
  • 5
  • 20

Unity3d: Execute a function for ten seconds and disable it for two seconds?

I have a particular function which I am calling in Update function. For the first ten seconds, the function should get called in Update function, then it should get disabled for next two seconds, then again enable it for next ten seconds. This cycle should keep repeating? How can I execute it?