hi there!

what would be the simplest way to write something like an "event-sequencer". i want to have a system where i could switch on/off frequently repeating function-calls like you could do f.e. with a step sequencer in music production systems.


edit: another question would be: do I use the function call in Update() or FixedUpdate()?

Have a look at http://unity3d.com/support/documentation/ScriptReference/index.Coroutines_26_Yield.html and implement a global variable the routine is listening to and if the value is "true" the routine runs some code, if not it just keeps silently doing nothing until the var switches to "true".