public void GroupListSync() { Dropdown.OptionData[] data = bulletDatabase.GetGroupNames(); bulletGroupUI.ClearOptions(); if (data != null) { for (int i = 0; i < data.Length; ++i) { bulletGroupUI.options.Add(data[i]); } bulletGroupUI.captionText.text = bulletGroupUI.options[0].text; } BulletListSync(); }
public void BulletGroupSync() { DropdownSync(ref groupUI, bulletDatabase.GetGroupNames(), groupSelect); BulletListSync(); }