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 |
Start coroutine attached to certain 'object'. Can be stopped by StopCoroutine() and StopAllCoroutines()
- Parameters
-
enumerator Method returning 'IEnumerator' in most cases o object 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 |
Start new standalone coroutine
- Parameters
-
enumerator Method 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 |
Stop all coroutines executed from certain GameObject
- Parameters
-
o object which coroutines was executed from. gameObject for example
|
static |
Stop coroutine
- Parameters
-
routine Routine object to stop
The documentation for this class was generated from the following file:
- D:/Work/Git/AdvancedCoroutines/Assets/AdvancedCoroutines/CoroutineManager.cs
Generated by 1.8.11