Ejemplo n.º 1
0
    public void SliderChangedEvent()
    {
        if (m_mixEffectBlock != null && Input.GetMouseButton(0))
        {
            double position = sliderUp2Under ? 1 - slider.value : slider.value;

            m_mixEffectBlock.SetTransitionPosition(position);

            if (slider.value == 1.0f)
            {
                sliderUp2Under = true;
                ProgramPreviewChanged();
            }

            if (slider.value == 0.0f)
            {
                sliderUp2Under = false;
                ProgramPreviewChanged();
            }
            Debug.Log($"1 {position}");
        }
    }