コード例 #1
0
 public static void SetMusic(MusicClipType bg)
 {
     instance.music.clip = instance.bg_music[(int)bg];
 }
コード例 #2
0
 public static void SetRandomMusic(MusicClipType min = MusicClipType.bg_1, MusicClipType max = MusicClipType.end)
 {
     SetMusic((MusicClipType)Random.Range((int)min, (int)max));
 }