浏览代码

removed OnRemoved event subscription

/3.1
David Mohrhardt 5 年前
当前提交
bf40bcfb
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 6
      Assets/Scripts/EyePoseVisualizer.cs

6
Assets/Scripts/EyePoseVisualizer.cs


m_FaceSubsystem = (XRFaceSubsystem)faceManager.subsystem;
SetVisible((m_Face.trackingState == TrackingState.Tracking) && (ARSession.state > ARSessionState.Ready));
m_Face.updated += OnUpdated;
m_Face.removed += OnRemoved;
}
else
{

{
CreateEyeGameObjectsIfNecessary();
SetVisible((m_Face.trackingState == TrackingState.Tracking) && (ARSession.state > ARSessionState.Ready));
}
void OnRemoved()
{
Debug.Log("Face was removed;");
}
}
正在加载...
取消
保存