Changed car controller script

This commit is contained in:
2024-04-24 07:27:55 +02:00
parent f18bad9413
commit 20cbc182ac
8 changed files with 59 additions and 92 deletions

View File

@@ -29,7 +29,7 @@ public class CarLoader : MonoBehaviour
void replaceCar(GameObject car, string color)
{
car.GetComponent<carcontrolv2>().enabled = true;
car.GetComponent<PlayerController>().enabled = true;
car.GetComponent<AgentControllerV6>().enabled = false;
cam.GetComponent<CameraControl>().getCar(car);