void Update() { ShipPlatform currentShipPlatform = shipSelectionController.GetCurrentShipPlatform(); nameText.text = currentShipPlatform.GetName(); speedStatBar.fillAmount = Mathf.Lerp(speedStatBar.fillAmount, currentShipPlatform.GetSpeed(), Time.deltaTime * fillBarSpeed); controlStatBar.fillAmount = Mathf.Lerp(controlStatBar.fillAmount, currentShipPlatform.GetControl(), Time.deltaTime * fillBarSpeed); resilienceStatBar.fillAmount = Mathf.Lerp(resilienceStatBar.fillAmount, currentShipPlatform.GetResilience(), Time.deltaTime * fillBarSpeed); }