protected virtual bool CheckTimes(float lastTime, EventHistory actualEvent)
{
// Make sure we're on the exact frame we expect.
if((frame > 0) && (frame != actualEvent.frame)) return true;
// Make sure that at the specified time value is in the past (lets us test
// that a certain amount of time has been waited).
if((realtimeSinceStartup > 0) && (realtimeSinceStartup > actualEvent.realtimeSinceStartup)) return true;
else if(realtimeSinceStartup < 0) {
// Use negative values to specify relative times.
float tmp = Mathf.Abs(realtimeSinceStartup) + lastTime;
if(tmp > actualEvent.realtimeSinceStartup) return true;
}
return false;
}