//process of hacking. call by terminal after minion collides
    public void UpdateHacking()
    {
        //if this is called by terminal
        if (!isHacking)
        {
            isHacking = true;
            audioManager.ActiveHackingSound();
        }
        hackTimeElapsed += Time.deltaTime;

        if (hackTimeElapsed >= HackTime)
        {
            isHacked = true;
            audioManager.SuccessfulHackSound();
            if (HackedBy.id == 0)
            {
                TerminalP2.GetComponent <TerminalController>().screenLight = TerminalP1.GetComponent <TerminalController>().screenLight;
                gameController.GetComponent <GameManager>().PlayerOneTally++;
            }
            else
            {
                TerminalP1.GetComponent <TerminalController>().screenLight = TerminalP2.GetComponent <TerminalController>().screenLight;
                gameController.GetComponent <GameManager>().PlayerTwoTally++;
            }
        }
    }