Exemplo n.º 1
0
        // Update is called once per frame
        void Update()
        {
            float value = comp.morph.GetWeight(currentMorph);

            if (value != 1f)
            {
                value = Mathf.MoveTowards(value, 1f, Time.deltaTime * morphSpeed);
                comp.SetMorphState(currentMorph, value);
            }
        }
Exemplo n.º 2
0
 public void OnChange()
 {
     percent = lastPercent = slider.value;
     computer.SetMorphState(percent);
 }