Helper class for running co-routines without having to inherit from MonoBehavior.
More...
|
void | UpdateRoutines () |
| THis can be called by the user to force all co-routines to get a time slice, this is usually invoked from an EditorApplication.Update callback so we can use runnable in Editor mode. More...
|
|
|
static int | Run (IEnumerator routine) |
| Start a co-routine function. More...
|
|
static void | Stop (int ID) |
| Stops a active co-routine. More...
|
|
static bool | IsRunning (int id) |
| Check if a routine is still running. More...
|
|
Helper class for running co-routines without having to inherit from MonoBehavior.
static bool IBM.Watson.DeveloperCloud.Utilities.Runnable.IsRunning |
( |
int |
id | ) |
|
|
inlinestatic |
Check if a routine is still running.
- Parameters
-
id | The ID returned by Run(). |
- Returns
- Returns true if the routine is still active.
static int IBM.Watson.DeveloperCloud.Utilities.Runnable.Run |
( |
IEnumerator |
routine | ) |
|
|
inlinestatic |
Start a co-routine function.
- Parameters
-
routine | The IEnumerator returns by the co-routine function the user is invoking. |
- Returns
- Returns a ID that can be passed into Stop() to halt the co-routine.
static void IBM.Watson.DeveloperCloud.Utilities.Runnable.Stop |
( |
int |
ID | ) |
|
|
inlinestatic |
Stops a active co-routine.
- Parameters
-
ID | THe ID of the co-routine to stop. |
void IBM.Watson.DeveloperCloud.Utilities.Runnable.UpdateRoutines |
( |
| ) |
|
|
inline |
THis can be called by the user to force all co-routines to get a time slice, this is usually invoked from an EditorApplication.Update callback so we can use runnable in Editor mode.
Runnable IBM.Watson.DeveloperCloud.Utilities.Runnable.Instance |
|
staticget |
The documentation for this class was generated from the following file: