Esempio n. 1
0
 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
     };
 }
Esempio n. 2
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);
    }
Esempio n. 3
0
    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;
    }
Esempio n. 4
0
 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);
             }
         }
     }
 }
Esempio n. 5
0
    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();
    }
Esempio n. 6
0
 void downStairs2(FMVManager.Command c)
 {
     fmvman.SwitchRoom("foyer", foyer.front_door, 'a');
 }
Esempio n. 7
0
 void AfterMorph(FMVManager.Command c)
 {
     PlaySong("GU56");
 }
Esempio n. 8
0
 void EndCans(FMVManager.Command c)
 {
     WinPuzzle();
 }
Esempio n. 9
0
 void SpiderArrivedWin(FMVManager.Command c)
 {
     Debug.Log("You Win!");
     PlaySound("GAMWAV/gen_s_2.avi", EndCurses, true);//curses!
 }
Esempio n. 10
0
 void SpiderArrived(FMVManager.Command c)
 {
 }
Esempio n. 11
0
 void GraveDigger(FMVManager.Command c)
 {
     //PlaySound(there, ExitPuzzle);
 }
Esempio n. 12
0
 void AfterSuck(FMVManager.Command c)
 {
     PlaySong("GU63");
 }
Esempio n. 13
0
 void EndPiano(FMVManager.Command c)
 {
     WinPuzzle();
 }
Esempio n. 14
0
 void SwitchToFoyer(FMVManager.Command c)
 {
     fmvman.SwitchRoom("foyer", 1, 'c');
 }
Esempio n. 15
0
 void completed2_(FMVManager.Command c)
 {
     //GU19 for after dr2_.avi??? does the dining room have a song or not?
     PlaySong("GU19");
 }