Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 2
0
 public void OnFordiSerializeView(FordiStream stream, FordiMessageInfo info)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
        protected internal void SerializeComponent(Component component, FordiStream stream, FordiMessageInfo info)
        {
            IFordiObservable observable = component as IFordiObservable;

            if (observable != null)
            {
                observable.OnFordiSerializeView(stream, info);
            }
            else
            {
                Debug.LogError("Observed scripts have to implement IPunObservable. " + component + " does not. It is Type: " + component.GetType(), component.gameObject);
            }
        }