// Start is called before the first frame update.
    void Start()
    {
        mouseController  = GetComponentInParent(typeof(FirstPersonMouseLookController)) as FirstPersonMouseLookController; // Get the mouse controller script.
        bulletController = transform.parent.GetComponentInChildren <RaycastBulletController>();

        SwitchGun(currentGunIndex);
    }
 // Start is called before the first frame update.
 void Start()
 {
     mouseController = GetComponentInChildren <FirstPersonMouseLookController>();
 }