Class CoroutineUtility
Utility that allows to run coroutines in a coherent way both in editor and in player modes.
Inheritance
CoroutineUtility
Assembly: cs.temp.dll.dll
Syntax
public class CoroutineUtility : Singleton<CoroutineUtility>
Methods
GetGameObjectPath(MonoBehaviour)
Declaration
public static string GetGameObjectPath(MonoBehaviour behaviour)
Parameters
Type |
Name |
Description |
MonoBehaviour |
behaviour |
|
Returns
IsRunning(MonoBehaviour, String)
Declaration
public static bool IsRunning(MonoBehaviour owner, string name)
Parameters
Type |
Name |
Description |
MonoBehaviour |
owner |
|
String |
name |
|
Returns
PrintCoroutines()
Declaration
public void PrintCoroutines()
PrintEditorCoroutines()
Declaration
public void PrintEditorCoroutines()
PrintRunningCoroutines()
Declaration
public void PrintRunningCoroutines()
StartCoroutine(IEnumerator, MonoBehaviour, String)
Declaration
public static void StartCoroutine(IEnumerator routine, MonoBehaviour owner, string id)
Parameters
StopAllEditorCoroutines()
Declaration
public static void StopAllEditorCoroutines()
StopAllEditorCoroutines(MonoBehaviour)
Declaration
public static void StopAllEditorCoroutines(MonoBehaviour owner)
Parameters
Type |
Name |
Description |
MonoBehaviour |
owner |
|
StopAllPlayingCoroutines(MonoBehaviour)
Declaration
public static void StopAllPlayingCoroutines(MonoBehaviour owner)
Parameters
Type |
Name |
Description |
MonoBehaviour |
owner |
|
StopCoroutine(String, MonoBehaviour)
Declaration
public static void StopCoroutine(string id, MonoBehaviour owner)
Parameters
Type |
Name |
Description |
String |
id |
|
MonoBehaviour |
owner |
|
WaitForSeconds(Single)
Declaration
public static IEnumerator WaitForSeconds(float seconds)
Parameters
Type |
Name |
Description |
Single |
seconds |
|
Returns