How can I call a function in my script every x seconds?
Thanks
InvokeRepeating: Unity - Scripting API: MonoBehaviour.InvokeRepeating