|
|
|
|
|
|
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;"); |
|
|
|
} |
|
|
|
} |