Exemplo n.º 1
0
        public void Awake()
        {
            _songNames = PopulateDropdown(NameDropdown1, SongDataFileUtility.GetAllSongNames(), value => value);
            NameDropdown2.ClearOptions();
            NameDropdown2.AddOptions(_songNames);

            _difficulties  = PopulateDropdown(DifficultyDropdown, BeatmapDifficulty.GetAll(), value => value.Name);
            _typeInstances = PopulateDropdown(TypeDropdown, BeatmapType.GetAll(), value => value.Name);

            CreateNewSongButton.onClick.AddListener(OnClickCreateSongButton);

            CreateBeatmapButton.onClick.AddListener(OnClickCreateBeatmapButton);
            LoadBeatmapButton.onClick.AddListener(OnClickLoadBeatmapButton);
            RefreshButton.onClick.AddListener(OnClickRefreshButton);

            EditSongButton.onClick.AddListener(OnClickEditSongButton);
        }