public void DeserializeView(FordiStream stream, FordiMessageInfo info) { if (this.ObservedComponents != null && this.ObservedComponents.Count > 0) { for (int i = 0; i < this.ObservedComponents.Count; ++i) { DeserializeComponent(this.ObservedComponents[i], stream, info); } } }
protected internal void DeserializeComponent(Component component, FordiStream stream, FordiMessageInfo info) { if (component is IFordiObservable observable) { observable.OnFordiSerializeView(stream, info); } else { Debug.LogError("Observed scripts have to implement IPunObservable. " + component + " does not. It is Type: " + component.GetType(), component.gameObject); } }
public void OnFordiSerializeView(FordiStream stream, FordiMessageInfo info) { throw new NotImplementedException(); }