void Update(float dt) { world.Update(dt); if (follow) { Vector3 pos = cube->GetComponent<Transform>()->Position; pos.y = 0; cameraObject->GetComponent<Transform>()->Position = pos; } }
void Update(float dt) { if (timer<0) { std::stringstream s; s<<counter++; //label->GetComponent<DynamicLabel>()->Text = s.str(); timer = 2.0f; } else { timer -= dt; } label->GetComponent<Label>()->FontSize = Input.GetTouchPosition(0).x * 0.2f; //label->GetComponent<Sizeable>()->Size = { Input.GetTouchPosition(0).x * 0.1f, 100}; Context().InputDevice().UpdateInputManager(&world.Input()); world.Update(dt); }
void Update(float dt) { world.Update(dt); }
void Update(float dt) { Context().InputDevice().UpdateInputManager(&world.Input()); Vector3 pos = dragger->GetComponent<Transform>()->Position; box->GetComponent<Sizeable>()->Size = { pos.x, pos.y }; world.Update(dt); }