void Update()
    {
        //获取玩家当前所在的区域
        for (int i = 0; i < patrols.Count; i++)
        {
            patrols[i].gameObject.GetComponent <PatrolData>().areaSign = areaSign;
        }
        //巡逻兵动作初始
        if (!temp && gameStatus == 0)
        {
            //所有巡逻兵移动
            for (int i = 0; i < patrols.Count; i++)
            {
                actionManager.GoPatrol(patrols[i]);
            }
            temp = true;
        }

        // 游戏胜利:收集三个钥匙,并成功抵达出口
        if (recorder.GetKeyNumber() == 3 && recorder.getInDoor())
        {
            Gamewin();
        }
    }