Advanced Coroutines: AdvancedCoroutines.CoroutineManager Class Reference

Advanced Coroutines

Advanced Coroutines  1.01
Advanced alternative to standard Unity Coroutines
AdvancedCoroutines.CoroutineManager Class Reference

Static Public Member Functions

static void Update (float deltaTime)
 
static void LateUpdate ()
 
static void OnPostRender ()
 
static Routine StartStandaloneCoroutine (IEnumerator enumerator)
 Start new standalone coroutine More...
 
static Routine StartCoroutine (IEnumerator enumerator, object o)
 Start coroutine attached to certain 'object'. Can be stopped by StopCoroutine() and StopAllCoroutines() More...
 
static void StopCoroutine (Routine routine)
 Stop coroutine More...
 
static void StopAllCoroutines (object o)
 Stop all coroutines executed from certain GameObject More...
 

Member Function Documentation

static Routine AdvancedCoroutines.CoroutineManager.StartCoroutine ( IEnumerator  enumerator,
object  o 
)
static

Start coroutine attached to certain 'object'. Can be stopped by StopCoroutine() and StopAllCoroutines()

Parameters
enumeratorMethod returning 'IEnumerator' in most cases
oobject which StartCoroutine was executed from. gameObject for example
Returns
New Routine object

///

IEnumerator CoroutineMethod()
{
yield return new Wait(1f);
yield return new Wait(Wait.WaitType.ForEndOfUpdate);
yield return new Wait(Wait.WaitType.ForNextFrame);
}
StartCoroutine(CoroutineMethod(), gameObject);
static Routine AdvancedCoroutines.CoroutineManager.StartStandaloneCoroutine ( IEnumerator  enumerator)
static

Start new standalone coroutine

Parameters
enumeratorMethod returning 'IEnumerator' in most cases
Returns
New StandaloneRoutine object
IEnumerator CoroutineMethod()
{
yield return new Wait(1f);
yield return new Wait(Wait.WaitType.ForEndOfUpdate);
yield return new Wait(Wait.WaitType.ForNextFrame);
}
StartCoroutine(CoroutineMethod());
static void AdvancedCoroutines.CoroutineManager.StopAllCoroutines ( object  o)
static

Stop all coroutines executed from certain GameObject

Parameters
oobject which coroutines was executed from. gameObject for example
static void AdvancedCoroutines.CoroutineManager.StopCoroutine ( Routine  routine)
static

Stop coroutine

Parameters
routineRoutine object to stop

The documentation for this class was generated from the following file:
  • D:/Work/Git/AdvancedCoroutines/Assets/AdvancedCoroutines/CoroutineManager.cs
Generated by   doxygen 1.8.11