public override bool RunMethod(PlayerGameItemUpdatedMessage message) { if (itemHolder != null && message.OldItem.Id == itemHolder.PlayerGameItem.Id) { //It's me to update var target = GameManager.Instance.PlayerGameItems.GetPlayerGameItemById(itemHolder.PlayerGameItem.Id); //Copy the value for the entity ObjectUtil.CopyObject(target, message.NewItem); target.Attrs = message.NewItem.Attrs; target.ExtraProps = message.OldItem.ExtraProps; } return(true); }