public void RemoveWheel(GameObject wheel) { WheelCollider wheelCollider = wheel.GetComponentInChildren <WheelCollider>(); Wheels.Remove(wheelCollider); directionalWheels.Remove(wheelCollider); WheelMeshes.Remove(wheel); }