private void TrackNewItem() { if (!np) { np = FindObjectOfType <NotificationsPanel> (); } if (InputCapture.hAim <= -0.7) { location = -1; // Move left np.NotificationsPanelSetEnable("Switch left " + playerLo.loadout[2].itemName + " out for " + itemToSwitch.thisItem.itemName + "?"); print("Moved Left"); } else if (InputCapture.hAim >= 0.7) { location = 1; // Move right np.NotificationsPanelSetEnable("Switch right " + playerLo.loadout[3].itemName + " out for " + itemToSwitch.thisItem.itemName + "?"); print("Moved Right"); } if (InputCapture.pickupUp) { if (location == 1) { itemToSwitch.thisItem = Database.instance.GetArmByLocation(itemToSwitch.thisItem, ItemLoc.rightArm); itemToSwitch.PerformTheItemSwitch(playerLo); EndTacking(); } print("Location " + location); if (location == -1) { print("Running This"); itemToSwitch.thisItem = Database.instance.GetArmByLocation(itemToSwitch.thisItem, ItemLoc.leftArm); itemToSwitch.PerformTheItemSwitch(playerLo); EndTacking(); } } if (InputCapture.back) { EndTacking(); } anim.SetInteger("location", location); }