IEnumerator / StartCoroutine in abilities?

embe

New member
Couldn't find much about this in the forums or documentation: I'm trying to use IEnumerator with StartCoroutine in an Ability, but it's saying StartCoroutine doesn't exist in that context. Is it possible to use that in an ability, or do I need to use the Scheduler? When I try the scheduler instead it says it can't convert the IEnumerator function to System.Action, even if I change it to a normal function. Can I launch functions with Scheduler?
 
The Ability class is a regular System.object so it does not implement coroutines. Instead you should use the Scheduler as you mentioned - one of the parameters accepts a method that should be called.

 
Back
Top