// Use this for initialization
 void Start()
 {
     transform.position = SecurityCam1.position;
     transform.rotation = SecurityCam1.rotation;
     player             = FindObjectOfType <PlayerMovementBehaviour>();
     ToolStationCam1.gameObject.SetActive(false);
 }
        void FixedUpdate()
        {
            player = FindObjectOfType <PlayerMovementBehaviour>();

            switch (player.state)
            {
            case PlayerState.idle:
            {
                transform.position = SecurityCam1.position;
                transform.rotation = SecurityCam1.rotation;
                break;
            }

            case PlayerState.move:
            {
                transform.position    = SecurityCam1.position;
                transform.rotation    = SecurityCam1.rotation;
                SecurityCam1.position = SecurityPost.position;
                SecurityCam1.rotation = SecurityPost.rotation;
                break;
            }

            case PlayerState.sitting:
            {
                transform.position        = ComputerCam1.position;
                transform.rotation        = ComputerCam1.rotation;
                player.transform.position = PlayerSeat.transform.position;
                break;
            }

            case PlayerState.standing:
            {
                transform.position = ToolStationCam1.position;
                transform.rotation = ToolStationCam1.rotation;
                ToolStationCam1.gameObject.SetActive(true);
                player.transform.position = WardrobeStandPoint.transform.position;
                break;
            }

            case PlayerState.viewing:
            {
                transform.position        = HoverCarCam1.position;
                transform.rotation        = HoverCarCam1.rotation;
                player.transform.position = HoverCarCollider.transform.position;
                break;
            }
            }

            //var player = FindObjectOfType<PlayerMovementBehaviour>();
            //if(player.IsSitting == true)
            //{
            //    transform.position = ComputerCam1.position;
            //    transform.rotation = ComputerCam1.rotation;

            //}

            //if(player.IsSitting == false)
            //{
            //    transform.position = SecurityPost.position;
            //    transform.rotation = SecurityPost.rotation;
            //}
            //if(player.IsStanding == true)
            //{
            //    transform.position = ToolStationCam1.position;
            //    transform.rotation = ToolStationCam1.rotation;
            //}
            //if(player.IsStanding == false)
            //{
            //    transform.position = SecurityPost.position;
            //    transform.rotation = SecurityPost.rotation;
            //}

            //if (player.transform.position == ComputerChair.transform.position &&  Input.GetKeyDown(KeyCode.E))
            //{
            //    player.position = PlayerSeat.position;
            //    transform.position = ComputerCam1.position;
            //    transform.rotation = ComputerCam1.rotation;
            //    GameObject.FindObjectOfType<PlayerMovementBehaviour>().enabled = false;
            //    if(Input.GetKeyDown(KeyCode.X))
            //    {
            //        GameObject.FindObjectOfType<PlayerMovementBehaviour>().enabled = true;
            //    }
            //}
            //if (player.transform.position == ToolStationCollider.transform.position)
            //{
            //    player.position = ToolStationStand.position;
            //    transform.position = ComputerCam1.position;
            //    transform.rotation = ComputerCam1.rotation;
            //}
        }