mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
BuzzAnim Update() returns whether it's active.
This commit is contained in:
parent
499f51f025
commit
6552108f52
@ -28,13 +28,15 @@ public:
|
||||
id = val;
|
||||
}
|
||||
|
||||
void Update( float dt )
|
||||
bool Update( float dt )
|
||||
{
|
||||
if( active )
|
||||
{
|
||||
time -= dt;
|
||||
if( time <= 0 ) active = false;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user