private void Update() { if (m_loaded != null) { m_loaded.EnableLipSyncValue = m_enableLipSync.isOn; m_loaded.EnableBlinkValue = m_enableAutoBlink.isOn; m_loaded.EnableAutoExpressionValue = m_enableAutoExpression.isOn; } if (Input.GetKeyDown(KeyCode.Tab)) { if (Root != null) { Root.SetActive(!Root.activeSelf); } } if (Input.GetKeyDown(KeyCode.Escape)) { if (_cancellationTokenSource != null) { _cancellationTokenSource.Cancel(); } } m_ui.UpdateToggle(() => m_loaded?.EnableBvh(m_src), () => m_loaded?.EnableTPose(m_pose)); }
private void Update() { if (Input.GetKeyDown(KeyCode.Tab)) { if (Root != null) { Root.SetActive(!Root.activeSelf); } } m_ui.UpdateToggle(() => m_loaded?.EnableBvh(m_src), () => m_loaded?.EnableTPose(m_pose)); if (m_loaded != null) { m_loaded.EnableLipSyncValue = m_enableLipSync.isOn; m_loaded.EnableBlinkValue = m_enableAutoBlink.isOn; m_loaded.Update(); } }