Пример #1
0
        public void Init(LipDataReceiveModel lipDataReceiveModel)
        {
            var subject = new Subject <OVRLipSync.Frame>();

            subject.Subscribe(receivedData => frame = receivedData);
            lipDataReceiveModel.Register(subject);
        }
 public void Init(LipDataReceiveModel lipDataReceiveModel)
 {
     lipDataReceiveModel.Register(headDataSubject);
     headDataSubject.Subscribe(receivedData =>
     {
         Debug.Log("frameDelay" + receivedData.frameDelay
                   + "frameNumber" + receivedData.frameNumber
                   + "laughterScore" + receivedData.laughterScore
                   + "Visemes" + receivedData.Visemes);
     });
 }