Changed: Optimization from code review PR #42

This commit is contained in:
Foxar
2020-12-08 13:36:13 +01:00
parent 83dce5cb92
commit 582b42c29e
5 changed files with 11 additions and 26 deletions
+1 -11
View File
@@ -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;
}
}
}
}