private void Update() { MovingObjectDTO model = core.GetModel(); slider.value = model.GetSpeedRealValue(); speedText.text = string.Format("Speed: {0:00.0}", model.Speed); nameText.text = string.Format("Name: {0}", model.Name); }
public MovingObjectDTO GetModel() { MovingObjectDTO ret = new MovingObjectDTO(); if (currentObject != null) { ret.Speed = currentObject.GetSpeed(); ret.Name = currentObject.GetObject().name; ret.MaxSpeed = Consts.MAX_SPEED; } return(ret); }