// Token: 0x06001613 RID: 5651 RVA: 0x0000EE0B File Offset: 0x0000D00B private int GetSlotIndex(HUDQuickItem item) { if (this.availableSlots.Contains(item.gameObject)) { return(this.availableSlots.IndexOf(item.gameObject)); } return(-1); }
// Token: 0x06001612 RID: 5650 RVA: 0x0007B664 File Offset: 0x00079864 private void FireActiveQuickItem(HUDQuickItem item) { switch (this.GetSlotIndex(item)) { case 0: global::EventHandler.Global.Fire(new GlobalEvents.InputChanged(GameInputKey.QuickItem1, 1f)); break; case 1: global::EventHandler.Global.Fire(new GlobalEvents.InputChanged(GameInputKey.QuickItem2, 1f)); break; case 2: global::EventHandler.Global.Fire(new GlobalEvents.InputChanged(GameInputKey.QuickItem3, 1f)); break; } }