private void Start() { // Get the slider graphics component. _sliderGraphics = GetComponent <UIGazeSliderGraphics>(); // Initialize the slider event. if (OnSliderValueChanged == null) { OnSliderValueChanged = new UISliderEvent(); } }
private void Start() { // Store the graphics class. _sliderGraphics = GetComponent <UIGazeSliderGraphics>(); // Store the global scale in x. _xScaleLossy = transform.lossyScale.x; // Intitialize the slider event. if (OnSliderValueChanged == null) { OnSliderValueChanged = new UISliderEvent(); } }