// Wheel.cs public class Wheel : MonoBehaviour { [Range(0, 1)] public float forwardFriction = 1; public float sidewaysFriction = 1; } // Assist.cs public class VehicleAssist : MonoBehaviour { void Start() { <...> } void FixedUpdate() { if (drift) { var wheels = GameObject.FindGameObjectsWithTag("wheels"); foreach (var wheel in wheels) { wheel.GetComponent().sidewaysFriction = 9f; wheel.GetComponent().forwardFriction = 5f; } } } }