static void Main() { Mania[] arMania = new Mania[10]; for (int i = 0; i < 10; i++) { arMania[i] = new Mania(i); } Notice RentCall = null; RentCall += arMania[1].RendMe; RentCall += arMania[4].RendMe; RentCall += arMania[6].RendMe; RentCall += arMania[9].RendMe; RentCall("염소 부인"); }
static void ImportManiaMap() { string loadPath = EditorUtility.OpenFilePanel("Load Mania File", "", "osu"); if (loadPath == "") { return; //Pressed cancel } Beatmap beatmap = Mania.FromFilePath(loadPath); string path = Path.Combine(BeatmapStore.DefaultSongPath, beatmap.SanitizedName); //Create the songs directory if it doesnt exist if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } if (beatmap.SongPath != null) { string songPath = Path.Combine(path, "song.wav"); if (!File.Exists(songPath)) { CopySongToLocal(beatmap.SongPath, songPath); } beatmap.SongPath = songPath; } if (beatmap.BackgroundPath != null) { string bgPath = Path.Combine(path, "bg.png"); if (!File.Exists(bgPath)) { CopyBackgroundToLocal(beatmap.BackgroundPath, bgPath); } beatmap.BackgroundPath = bgPath; } BeatmapStore.AddSong(beatmap); }