static void OnFaceAdded(FaceAddedEventArgs eventArgs)
 {
     if (s_FaceAdded != null)
     {
         s_FaceAdded(eventArgs);
     }
 }
示例#2
0
        void OnFaceAdded(FaceAddedEventArgs eventArgs)
        {
            var xrFace = eventArgs.xrFace;
            var face   = AddFace(xrFace);

            face.xrFace = xrFace;

            if (faceAdded != null)
            {
                faceAdded(new ARFaceAddedEventArgs(face));
            }
        }