/// <summary>
 /// Raises the object changed event.
 /// </summary>
 /// <param name="o">O.</param>
 public void OnObjectChanged(Shareable o)
 {
     // send the object change to other players
     if (o != null)
     {
         o.UpdateState();
         changesToShare[o.State.Name] = o.State;
     }
     else
     {
         Debug.Log("Trying to record null object change?");
     }
 }
 /// <summary>
 /// Raises the object changed event.
 /// </summary>
 /// <param name="o">O.</param>
 public void OnObjectChanged(Shareable o)
 {
     // send the object change to other players
     if (o != null)
     {
         o.UpdateState();
         changesToShare[o.State.Name] = o.State;
     }
     else
     {
         Debug.Log("Trying to record null object change?");
     }
 }