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; } }
public void Clear() { transition = new AnimValue(parameters.focalLength.value, 1, 0.15f); menu_bloom.active = false; deco_blur.active = false; }
public void OnDecorationDrag() { transition = new AnimValue(parameters.focalLength.value, 64, 0.3f); }