protected void uLink_OnNetworkInstantiate(uLink.NetworkMessageInfo info) { this._parentViewID = info.networkView.initialData.ReadNetworkViewID(); int num = info.networkView.initialData.ReadInt32(); this._datablock = (HeldItemDataBlock)DatablockDictionary.GetByUniqueID(num); if (!this.CheckParent()) { Debug.Log("No parent for item rep (yet)", this); } }
internal void SetDataBlockFromHeldItem <T>(HeldItem <T> item) where T : HeldItemDataBlock { this._datablock = (T)item.datablock; }