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)); }
void SetMotion(HumanPoseTransfer src) { m_src = src; src.GetComponent <Renderer>().enabled = false; if (m_loaded != null) { m_loaded.EnableBvh(src); } }
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(); } }