Beispiel #1
0
 void OnTriggerStay(Collider info)
 {
     if (info.tag == "Player" && Input.GetMouseButtonDown(0) && !cam.GetComponent <takePicture>().cameraMode&& cam.GetComponent <takePicture>().invNum == 6)
     {
         if (info.CompareTag("Player"))
         {
             crossOver.MigrateInfo(info);
             fade.FadeOut();
         }
     }
 }
Beispiel #2
0
    void Update()
    {
        //begin dialog
        if (isTalking)
        {
            EnableTextBox();
            theText.text = textLines [currentLine];

            if (Input.GetMouseButtonDown(0))
            {
                currentLine++;
            }

            if (currentLine == endAtLine)
            {
                DisableTextBox();
                isTalking = false;
            }

            ChangeAnim();
        }

        if (playerTalking)
        {
            anim.SetBool("isTalking", true);
        }
        else
        {
            anim.SetBool("isTalking", false);
        }


        //start Game
        if (!isTalking)
        {
            if (!fade.fadeOut)
            {
                fade.FadeOut();
            }
        }
    }