I want to alternate between gameobjects by using transforms in c#

I have an error CS0176 for some reason and I don’t understand why plz help thanks.

code

using UnityEngine;
using System.Collections;

public class MoveMent : MonoBehaviour {

public float moveSpeed; 
public float jumpHeight;
public Transform groundCheck;
public float groundCheckRadius;
public LayerMask whatIsGround;
private bool grounded;
private bool doubleJumped;

// Game Objects/Transforms I want to alternate.

    public GameObject FirePoint;                      
    public GameObject FirePoint2;                      
    public Transform firePoint;

private SpriteRenderer mySpriteRenderer;
public GameObject bullet;

// Use this for initialization
void Start () {

}

void FixedUpdate() {
	grounded = Physics2D.OverlapCircle (groundCheck.position, groundCheckRadius, whatIsGround);
}

void Update () {
	if (grounded)
	   doubleJumped = false;

	if (Input.GetKeyDown (KeyCode.UpArrow) && grounded) {
		GetComponent<Rigidbody2D>().velocity = new Vector2(GetComponent<Rigidbody2D>().velocity.x, jumpHeight); }

	if (Input.GetKeyDown (KeyCode.UpArrow) && !doubleJumped && !grounded) {
		GetComponent<Rigidbody2D>().velocity = new Vector2(GetComponent<Rigidbody2D>().velocity.x, jumpHeight);
		doubleJumped = true; }
	

	if (Input.GetKey (KeyCode.LeftArrow)) {
		GetComponent<Rigidbody2D>().velocity = new Vector2(-moveSpeed, GetComponent<Rigidbody2D>().velocity.y); 

	
	
	}
		
	if (Input.GetKey (KeyCode.RightArrow)) {
		GetComponent<Rigidbody2D> ().velocity = new Vector2 (moveSpeed, GetComponent<Rigidbody2D> ().velocity.y); 

	}

	if (Input.GetKey (KeyCode.LeftArrow)) {
		mySpriteRenderer.flipX = true;
	
	}

	if (Input.GetKey (KeyCode.RightArrow)) {
		mySpriteRenderer.flipX = false;

	}
	
	if (Input.GetKeyDown(KeyCode.Space)) 
	{
		Instantiate (bullet, firePoint.position, firePoint.rotation);
	}

	//  Error Here, <----------------------------> 

	if (Input.GetKey (KeyCode.LeftArrow)) {
		Transform firePoint = gameObject.Find("FirePoint2");
	}

	if (Input.GetKey (KeyCode.RightArrow)){
		Transform firePoint = gameObject.Find("FirePoint");
	        
                	
	}
// <-----------------------------------> End of error

}

private void Awake(){
	mySpriteRenderer = GetComponent<SpriteRenderer>();




}

}

Thanks @TreyH I finally fixed it with trial and error :slight_smile: