void CakeUp(FMVManager.Command c) { if (types_selected[skull] < 2 || types_selected[stone] < 2 || types_selected[icing] < 1) { return; } for (int x = 0; x < 6; x++) { for (int y = 0; y < 5; y++) { if (GetSlice(x, y) == selected) { int slot = GetSlot(x, y); //fmvman.ClearPlayingVideos("cake-" + slot.ToString("00")); QueueOverlay(myvidpath + slot.ToString("00") + "cf.avi", CakeAway, new Color(0, 0, 251.0f / 255.0f, 1), "away-cake-" + slot.ToString("00"), false, false, GetZ(slot), 0.5f, 0.5f); fmvman.playlist.Add(new FMVManager.Command { type = FMVManager.CommandType.WAITTIME, countdown = 0.1f }); fmvman.playlist.Add(new FMVManager.Command { type = FMVManager.CommandType.CLEARVIDEOS, tags = "select-cake-" + slot.ToString("00") }); SetSlice(slot, done); } } } num_selected = 0; types_selected = new int[4] { 0, 0, 0, 0 }; }
void completed1_0(FMVManager.Command c) { PlaySong("GU16"); //need to make a clickbox for this here... currPos.node = cake; QueueMovement("_v.avi", false); StartPuzzle("cake", endcake); }
void NewGame(FMVManager.Command c) { if (myvid == null) { MenuReady(c); } myvid.rp.transform.SetParent(transform); fmvman.PlaySong(new FMVManager.Command { file = "", type = FMVManager.CommandType.SONG }); fmvman.SwitchRoom("intro", 1, 'a'); YSpeed = 10.0f; }
void MenuReady(FMVManager.Command c) { foreach (var v in fmvman.playing_videos) { var vs = v.GetComponent <videoScript>(); var com = vs.command; if (fmvman.HasTags(com.tags, "menu")) { myvid = vs; if (myvid.rp != null) { myvid.rp.transform.SetParent(transform); } } } }
void CakeAway(FMVManager.Command c) { fmvman.ClearPlayingVideos(c.tags); for (int x = 0; x < 6; x++) { for (int y = 0; y < 5; y++) { if (GetSlice(x, y) != done) { return; } } } //Ego says "there" WinPuzzle(); }
void downStairs2(FMVManager.Command c) { fmvman.SwitchRoom("foyer", foyer.front_door, 'a'); }
void AfterMorph(FMVManager.Command c) { PlaySong("GU56"); }
void EndCans(FMVManager.Command c) { WinPuzzle(); }
void SpiderArrivedWin(FMVManager.Command c) { Debug.Log("You Win!"); PlaySound("GAMWAV/gen_s_2.avi", EndCurses, true);//curses! }
void SpiderArrived(FMVManager.Command c) { }
void GraveDigger(FMVManager.Command c) { //PlaySound(there, ExitPuzzle); }
void AfterSuck(FMVManager.Command c) { PlaySong("GU63"); }
void EndPiano(FMVManager.Command c) { WinPuzzle(); }
void SwitchToFoyer(FMVManager.Command c) { fmvman.SwitchRoom("foyer", 1, 'c'); }
void completed2_(FMVManager.Command c) { //GU19 for after dr2_.avi??? does the dining room have a song or not? PlaySong("GU19"); }