class MAGES::ComponentLibrary::ActionScheduler¶
Overview¶
The ActionScheduler component. More…
class ActionScheduler: public MonoBehaviour
{
public:
// classes
class ScheduledAction;
// properties
ActionScheduler Instance;
// methods
static void Schedule(System.Action action, float delay = -1.0f);
static void RunCoroutine(IEnumerator routine);
};
Detailed Documentation¶
The ActionScheduler component.
Properties¶
ActionScheduler Instance
Gets the instance of the ActionScheduler.
Methods¶
static void Schedule(System.Action action, float delay = -1.0f)
Schedules an action to be executed after a delay.
Parameters:
action |
The action to trigger. |
delay |
The amount of in game time to wait for. Set to negative to invoke the action at the end of a frame. |
static void RunCoroutine(IEnumerator routine)
Runs a coroutine.
Parameters:
routine |
The routine to run. |