public void DeserializeViewComponent(NGViewStream stream) { mCorrentPosition = (NGVector3)stream.Receive(); mCorrentRotation = (NGQuaternion)stream.Receive(); }
public void SerializeViewComponent(NGViewStream stream) { stream.Send(this.transform.position); stream.Send(this.transform.rotation); }