// Use this for initialization
    void Start()
    {
        anim = GetComponent <Animator>();

        GM             = GameObject.FindGameObjectWithTag("GM");
        ti             = GM.GetComponent <TestInventory>();
        gameOverScript = GM.GetComponent <gameOverText> ();

        radarCamera.enabled = false;
        mainCamera.enabled  = true;
    }
    // Use this for initialization
    void Start()
    {
        playerGO     = GameObject.FindGameObjectWithTag("Player");
        playerScript = playerGO.GetComponent <CharacterControl>();

        GM                 = GameObject.FindGameObjectWithTag("GM");
        gameOverScript     = GM.GetComponent <gameOverText>();
        spawnEnemiesScript = GM.GetComponent <spawnEnemies>();

        agent = GetComponent <NavMeshAgent>();

        startRotation = transform.rotation;

        anim = GetComponent <Animator>();

        startPos = transform.position;
        endPos   = startPos + (transform.forward * patrolDistance);
    }