示例#1
0
    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);
        }
    }
示例#2
0
 internal void SetDataBlockFromHeldItem <T>(HeldItem <T> item)
     where T : HeldItemDataBlock
 {
     this._datablock = (T)item.datablock;
 }