Twoorb Plugins  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Twoorb.Utilities.Coroutiner Class Reference

Helper class to start coroutines from classes that doesn't inherit from MonoBehaviour. example usage: Coroutiner.StartRoutine(My_Coroutine()); More...

Inheritance diagram for Twoorb.Utilities.Coroutiner:

Static Public Member Functions

static Coroutine StartRoutine (string methodName)
 Starts a coroutine with a method name More...
 
static Coroutine StartRoutine (string methodName, object value)
 Starts a coroutine with an object value More...
 
static Coroutine StartRoutine (IEnumerator routine)
 Starts a coroutine More...
 
static void StopRoutine (string methodName)
 Stops a specified coroutine More...
 
static void StopAllRoutines ()
 Stops all the coroutine More...
 

Detailed Description

Helper class to start coroutines from classes that doesn't inherit from MonoBehaviour. example usage: Coroutiner.StartRoutine(My_Coroutine());

Member Function Documentation

static Coroutine Twoorb.Utilities.Coroutiner.StartRoutine ( string  methodName)
static

Starts a coroutine with a method name

Parameters
methodNameThe method name
Returns
The Coroutine
static Coroutine Twoorb.Utilities.Coroutiner.StartRoutine ( string  methodName,
object  value 
)
static

Starts a coroutine with an object value

Parameters
methodNameThe method name
valueThe value to send with the method
Returns
The co-routine
static Coroutine Twoorb.Utilities.Coroutiner.StartRoutine ( IEnumerator  routine)
static

Starts a coroutine

Parameters
routineThe method reference to start
Returns
The coroutine
static void Twoorb.Utilities.Coroutiner.StopAllRoutines ( )
static

Stops all the coroutine

static void Twoorb.Utilities.Coroutiner.StopRoutine ( string  methodName)
static

Stops a specified coroutine

Parameters
methodNameThe method name of the co-routine to stop

The documentation for this class was generated from the following file: