private void SongSelectected(int songIndex, string songFullPath) { SongSelectedEvent?.Invoke(songIndex, songFullPath, Path.GetFileNameWithoutExtension(songFullPath)); }
/** * @brief Handles the @link SC_LoadSongDialog::mLoadButton Load button@endlink being clicked by invoking the SongSelectedEvent and destroying itself. */ private void OnLoadButtonClicked() { SongSelected.Invoke(mSelectedSong); DestroyImmediate(gameObject, false); }