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();
    }
Exemple #2
0
 public void BulletGroupSync()
 {
     DropdownSync(ref groupUI, bulletDatabase.GetGroupNames(), groupSelect);
     BulletListSync();
 }