public void UpdateEntry() { PlayerProfile playerProfile = Lobby.instance.GetProfile(player); nameText.text = playerProfile.name; CarManager.CarData carData = CarManager.GetCurrentCar(); carImage.sprite = carData.image; }
public void SetCar(CarManager.CarData car) { carName = car.name; image.sprite = car.image; string text = car.name + Environment.NewLine; text += car.description + Environment.NewLine; text += "Max Speed: " + car.prefab.maxSpeed + Environment.NewLine; text += "Engine Torque: " + car.prefab.engineTorque + Environment.NewLine; description.text = text; }