public void Timer(float changeInTime)
    {
        timer -= changeInTime;

        if (timer <= 0)
        {
            timer = 0;
            if (!timeUp)
            {
                timeUp = true;
                Warp warpScript = FindObjectOfType <Warp>();
                StartCoroutine(warpScript.WarpTo(new Vector3(-13, -5, 0), "Office"));
                LaptopScript laptopScript = FindObjectOfType <LaptopScript>();
                laptopScript.interact();
                GameObject investigateButton = GameObject.Find("Investigate Button");
                investigateButton.GetComponent <Button>().interactable = false;
                GameObject chooseButton = GameObject.Find("Choose Button");
                chooseButton.GetComponent <Button>().interactable = true;
            }
        }

        string minutes = ((int)timer / 60).ToString();
        string seconds = (timer % 60).ToString("f1");

        timerText.text = minutes + ":" + seconds;
    }
    public static void ExtractingLaptopDiscussion()
    {
        LaptopScript laptop = UnityEngine.Object.FindObjectOfType <LaptopScript>();

        if (laptop != null)
        {
            foreach (string sub in laptop.Subs)
            {
                WriteSub(sub);
            }
        }
    }
    private IEnumerator Compute()
    {
        head.transform.rotation = Quaternion.Euler(0, 0, 0);
        yield return(new WaitForSeconds(1.0f));

        leftHand.transform.position = new Vector3(0.4f, -1.5f, -6.2f);
        head.transform.rotation     = Quaternion.Euler(-10, -10, 0);
        yield return(new WaitForSeconds(0.5f));

        leftHand.transform.position = new Vector3(0.6f, -1.5f, -6.8f);
        LaptopScript laptopScript = laptop.GetComponent <LaptopScript>();

        StartCoroutine(laptopScript.TurnOn());
        yield return(new WaitForSeconds(0.5f));

        leftHand.transform.position = new Vector3(0.4f, -1.5f, -6.2f);
        yield return(new WaitForSeconds(0.5f));

        leftHand.transform.position = new Vector3(0, -3.0f, -6.2f);
        yield return(new WaitForSeconds(3.0f));

        head.transform.rotation = Quaternion.Euler(0, 0, 0);
        yield break;
    }