예제 #1
0
    private void Update()
    {
        if (transition != null)
        {
            transition.Update(Time.deltaTime);
            parameters.focalLength.value = transition.value;
            if (transition.IsDone())
            {
                transition = null;
            }
        }

        if (next_node != null && active_node != next_node)
        {
            if (active_node != null)
            {
                active_node.gameObject.transform.Find("bg_fx").gameObject.SetActive(false);
            }
            active_node = next_node;

            active_node.gameObject.transform.Find("bg_fx").gameObject.SetActive(true);
            next_node = null;
        }
    }
예제 #2
0
 public void Clear()
 {
     transition        = new AnimValue(parameters.focalLength.value, 1, 0.15f);
     menu_bloom.active = false;
     deco_blur.active  = false;
 }
예제 #3
0
 public void OnDecorationDrag()
 {
     transition = new AnimValue(parameters.focalLength.value, 64, 0.3f);
 }