Detailed Description

A faster coroutine without needing a monobehaviour. This holds a callback which gets executed at a particular rate (or at the framerate if unspecified).

Public Member Functions

 OnUpdateCallback (UpdateMethod method, float fps)
 
 OnUpdateCallback (UpdateMethod method)
 
void SetRate (float rate)
 
void Stop ()
 
void Remove ()
 
void RunMethod ()
 

Public Attributes

OnUpdateCallback Next
 
OnUpdateCallback Previous
 

Properties

float deltaTime [get]
 Frame time between this being called. More...
 

Private Attributes

float Limit
 
float Counter
 
UpdateMethod Method
 

Constructor & Destructor Documentation

PowerUI.OnUpdateCallback.OnUpdateCallback ( UpdateMethod  method,
float  fps 
)
inline
PowerUI.OnUpdateCallback.OnUpdateCallback ( UpdateMethod  method)
inline

Member Function Documentation

void PowerUI.OnUpdateCallback.Remove ( )
inline
void PowerUI.OnUpdateCallback.RunMethod ( )
inline
void PowerUI.OnUpdateCallback.SetRate ( float  rate)
inline
void PowerUI.OnUpdateCallback.Stop ( )
inline

Member Data Documentation

float PowerUI.OnUpdateCallback.Counter
private
float PowerUI.OnUpdateCallback.Limit
private
UpdateMethod PowerUI.OnUpdateCallback.Method
private
OnUpdateCallback PowerUI.OnUpdateCallback.Next
OnUpdateCallback PowerUI.OnUpdateCallback.Previous

Property Documentation

float PowerUI.OnUpdateCallback.deltaTime
get

Frame time between this being called.