TimeManager
Introduction
Retrieving Frame Length
Screen Time
// We'll store the value outside of any functions
// so we can set it in CustomInitialize but check against
// it in CustomActivity
double timeInitialized;
private void CustomInitialize()
{
// Store off the time...
timeInitialized = TimeManager.CurrentScreenTime;
}
private void CustomActivity()
{
// Check if more than 5 seconds have passed. If so...
if(TimeManager.CurrentScreenSecondsSince(timeInitialized) > 5.0)
{
// ... make the circle invisible
this.CircleInstance.Visible = false;
}
}CurrentScreenTime vs CurrentTime vs CurrentSystemTime
TimeManager and GameTime
Last updated
Was this helpful?