//The following methods are all run by the game machine during the life of this componet /// <summary> /// Called right after the component is added. /// If AddComponents(params Type[]) is used to add this, it will get called after all the components have been added /// </summary> void Awake() { netView = GetComponent <NetworkView>(); netView.SetSerializationMethod(Serialize); netView.OnDeserializeStream += OnDeserializeStream; }