protected override void OnPrefabInit() { _instance = this; fullSongPlaylist.ResetUnplayedSongs(); miniSongPlaylist.ResetUnplayedSongs(); nextMusicType = musicStyleOrder[musicTypeIterator]; }
public Song(string name = " ", DateTime released = new DateTime(), TypeOfMusic genre = 0, string length = " ", string writer = " ", System.Guid id = new Guid()) { Name = name; Released = released; Genre = genre; Length = length; Writer = writer; ID = id; }
public MusicGroup(string name = " ", string nationality = " ", TypeOfMusic type = 0, DateTime createdDate = new DateTime(), DateTime endDate = new DateTime(), System.Data.Linq.Binary image = null, System.Guid id = new Guid()) { Name = name; Nationality = nationality; Type = type; CreatedDate = createdDate; EndDate = endDate; Image = image; ID = id; _musicians = new List <Musician>(); _songs = new List <Song>(); }
private void CycleToNextMusicType() { musicTypeIterator = ++musicTypeIterator % musicStyleOrder.Length; nextMusicType = musicStyleOrder[musicTypeIterator]; }
public string GetMusicName(int m) { TypeOfMusic = (MusicType)m; return(TypeOfMusic.ToDescription()); }