public override void HandleAction()
        {
            // don't try to understand it
            if (dialogSpawner != null)
            {
                if (which == 3)
                {
                    if (!GameMasterScript.instance.getFlag("-c-openDoor1"))
                    {
                        dialogSpawner.startDialog(which);
                        return;
                    }
                }
                else
                {
                    dialogSpawner.startDialog(which);
                }
            }

            if (targetRoom == 6)
            {
                handyCanvas.SetActive(true);
            }

            if (targetRoom != -1)
            {
                if (doorSound != null)
                {
                    audioSource.clip = doorSound;
                    audioSource.Play();
                }
                GameMasterScript.instance.changeCameraTo(targetRoom);
            }
        }
 public override void HandleTake()
 {
     if (!GameMasterScript.instance.getFlag("-c-spaghettiPockets"))
     {
         dialogSpawner.startDialog(which);
         GameMasterScript.instance.setFlag("-c-spaghettiPockets");
     }
 }
Exemple #3
0
 void OnMouseDown()
 {
     if (which == 3 && GameMasterScript.instance.getFlag("-c-openDoor1"))
     {
         Debug.Log("entering bathroom");
         GameMasterScript.instance.changeCameraTo(1);
         return;
     }
     dialogSpawner.startDialog(which);
 }
Exemple #4
0
 public override void HandleAction()
 {
     if (which == 0)
     {
         if (GameMasterScript.instance.getFlag("-c-openDoor1"))
         {
             return;
         }
     }
     dialogSpawner.startDialog(which);
 }
    void placeCall(String number)
    {
        if (text.text.Equals("01189998819991197253"))
        {
            source.clip = itcrowd;
            source.Play();
            text.text = "";
            return;
        }

        if (text.text.Equals("523367"))
        {
            source.Stop();
            dialogSpawner.startDialog(4);
            text.text = "";
            return;
        }

        source.clip = occupied;
        source.Play();
        text.text = "";
    }