void RefreshList() { // gunControl.WeaponSwitch(0); //identify salvage targets // player.chassis weaponList.options.Clear(); // chassisList.options.Add(new Dropdown.OptionData() { text = defaultSelection }); for (int i = 0; i < gunControl.playerWeapons.Sets.Length; i++) { weaponList.options.Add(new Dropdown.OptionData() { text = gunControl.playerWeapons.Sets[i].getAlias() }); } GetComponentInChildren <Text>().text = "Current Weapon: " + gunControl.getActiveWeapon().gameObject.name; }