void FixedUpdate() { SmoothWaypoint3DBehaviour comp = GetComponent <SmoothWaypoint3DBehaviour>(); if (comp.valueControl.maxDelta <= 1f) { comp.valueControl.maxDelta = 1f; } }
public void LowVitesse() { SmoothWaypoint3DBehaviour comp = GetComponent <SmoothWaypoint3DBehaviour>(); comp.valueControl.maxDelta -= 4f; }