//public AIPatrol aiPatrol;


    void Awake()
    {
        anim = GetComponent <Animator>();

        rigidBody   = GetComponent <Rigidbody>();
        myTransform = transform;
        checkPoint  = myTransform.position;
        battery     = GetComponent <BatteryBehavior>();
        camFollow   = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraFollow>();
    }
    // Use this for initialization
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player");

        batteryBehavior = player.GetComponent <BatteryBehavior>();
    }
 // Use this for initialization
 void Start()
 {
     camTimer = GameObject.FindGameObjectWithTag("Player").GetComponent <BatteryBehavior>();
 }