コード例 #1
0
 public void DeserializeViewComponent(NGViewStream stream)
 {
     mCorrentPosition = (NGVector3)stream.Receive();
     mCorrentRotation = (NGQuaternion)stream.Receive();
 }
コード例 #2
0
 public void SerializeViewComponent(NGViewStream stream)
 {
     stream.Send(this.transform.position);
     stream.Send(this.transform.rotation);
 }