private void Start() { _lever = GameObject.Find("Stuur").GetComponent <AccelerationLever>(); _transform = gameObject.GetComponent <Transform>(); _lever.RegisterOnChanged(UpdateLeverRotationZ); }
private void UpdateLeverRotationZ(AccelerationLever lever) { _movSpeed += lever.RotationZ; }