Changed: Optimization from code review PR #42
This commit is contained in:
@@ -29,22 +29,12 @@ Collectible::~Collectible()
|
||||
{
|
||||
}
|
||||
|
||||
void Collectible::setActive(u8 b)
|
||||
{
|
||||
bActive = b;
|
||||
}
|
||||
|
||||
void Collectible::disappear()
|
||||
{
|
||||
bDisappearing = true;
|
||||
lift = 10;
|
||||
}
|
||||
|
||||
u8 Collectible::isActive()
|
||||
{
|
||||
return bActive;
|
||||
}
|
||||
|
||||
void Collectible::update()
|
||||
{
|
||||
mesh.rotation.y += 0.08F;
|
||||
@@ -58,4 +48,4 @@ void Collectible::update()
|
||||
bDisappearing = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user