Exemplo n.º 1
0
 public void Init(HeadDataReceiveModel headDataReceiveModel)
 {
     headDataReceiveModel.Register(headDataSubject);
     headDataSubject.Subscribe(receivedData =>
     {
         headBone.localRotation = Quaternion.Euler(receivedData.headRotation);
         headBone.localPosition = receivedData.headPosition;
     });
 }
Exemplo n.º 2
0
 public void Init(HeadDataReceiveModel headDataReceiveModel)
 {
     headDataReceiveModel.Register(headDataSubject);
     headDataSubject.Subscribe(receivedData =>
     {
         Debug.Log("headPosition" + receivedData.headPosition
                   + "headRotation" + receivedData.headRotation);
     });
 }