您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
420 B

public struct TickEventHandler
{
public TickEventHandler(float expirationDuration)
{
m_expirationDuration = expirationDuration;
m_startTick = 0;
}
public bool Update(GameTime time, int startTick)
{
if (startTick > m_startTick)
{
m_startTick = startTick;
return time.DurationSinceTick(m_startTick) < m_expirationDuration;
}
return false;
}
float m_expirationDuration;
int m_startTick;
}