// Use this for initialization
    void Start()
    {
        firePrimary       = GetComponent <FirePrimary>();
        fireTractorBullet = GetComponent <FireTractorBullet>();
        CapsuleCollider barrelCapsule = GetComponentInChildren <CapsuleCollider>();

        maxBarrelLength = (barrelCapsule.height + barrelCapsule.radius) * barrelCapsule.gameObject.transform.lossyScale.y;
        player          = GameObject.FindGameObjectWithTag("Player").transform.root.gameObject;
    }
 // Use this for initialization
 void Start()
 {
     firePrimary = GetComponent<FirePrimary>();
     fireTractorBullet = GetComponent<FireTractorBullet>();
     CapsuleCollider barrelCapsule = GetComponentInChildren<CapsuleCollider>();
     maxBarrelLength = (barrelCapsule.height+barrelCapsule.radius)*barrelCapsule.gameObject.transform.lossyScale.y;
     player = GameObject.FindGameObjectWithTag("Player").transform.root.gameObject;
 }