// Token: 0x06003A9C RID: 15004 RVA: 0x000CDB78 File Offset: 0x000CBD78 protected override void DoDeactivateItem() { if (this._activeItem != null) { global::IHeldItem heldItem = this._activeItem as global::IHeldItem; if (heldItem != null) { heldItem.OnDeactivate(); } } this._activeItem = null; base.DoDeactivateItem(); }
// Token: 0x06003A9B RID: 15003 RVA: 0x000CDB1C File Offset: 0x000CBD1C protected override void DoSetActiveItem(global::InventoryItem item) { global::InventoryItem activeItem = this._activeItem; this._activeItem = item; if (activeItem != null) { global::IHeldItem heldItem = activeItem.iface as global::IHeldItem; if (heldItem != null) { heldItem.OnDeactivate(); } } if (this._activeItem != null) { global::IHeldItem heldItem2 = this._activeItem as global::IHeldItem; if (heldItem2 != null) { heldItem2.OnActivate(); } } }