- Home /
Answer by ScroodgeM · Aug 26, 2012 at 07:49 PM
you can't make Update as Coroutine, but you can start
Update() { if (myBool) { StartCoroutine(CoroutnieMethod(params)); myBool = false } }
it in Update(). be aware about running Coroutines every frame 8)
So I run Update() in Start()?
And where do I run my function? The name of the function is Bleed(). How can I run that? Sorry, but this is just very confusing to me.
Update() is running automatically every frame, i recommend never call it manually.
if your Bleed() is coroutine that should be run from Update() on boolean becomes true - use example above with Bleed as Coroutnie$$anonymous$$ethod
note that Bleed() should have return type IEnumerator