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) { Context().InputDevice().UpdateInputManager(&world.Input()); Vector3 pos = dragger->GetComponent<Transform>()->Position; box->GetComponent<Sizeable>()->Size = { pos.x, pos.y }; world.Update(dt); }