Ejemplo n.º 1
0
    // POPUPS
    public void Popup(string t)
    {
        source.PlayOneShot(pageFlipAudio, 1f);
        switch (t)
        {
        case "Newspaper":
            newspaperSlide.TogglePopup();
            break;

        case "Note":
            noteSlide.TogglePopup();
            break;

        case "PhotoBoyButton":
            photoBoy.TogglePopup();
            break;

        case "PhotoCerysButton":
            photoCerys.TogglePopup();
            break;

        case "PhotoSusanButton":
            photoSusan.TogglePopup();
            break;

        case "BoxNote":
            boxNoteSlide.TogglePopup();
            break;

        case "VentNote":
            ventNoteSlide.TogglePopup();
            break;
        }
    }
Ejemplo n.º 2
0
 private void DelayInvoke()
 {
     if (popupNewspaper)
     {
         newspaperSlide.TogglePopup();
     }
     Invoke("LoadGame", 3);
 }