Lever::Lever(const mat4& _modelMat, const vec4& _material, string _modelpath, string texturepath) : SceneObject(_modelMat, _material, _modelpath, texturepath)
{
+ turned = false;
recipient = nullptr;
collide_group = COL_LEVER;
collide_with = COL_EVENT;
{
this->startanimation((uint)0, 1.0f);
recipient->startanimation((uint)0, 1.0f);
+
+ Message::info("Sesam öffne dich!");
}
else
{
this->startanimation((uint)0, -1.0f);
recipient->startanimation((uint)0, -1.0f);
+
+ Message::info("Sesam schließe dich!");
}
}