Mobile controls not working

I am working on a 2D platformer and i am tring to add mobile controls. What I want is for the joystick that moves the player (which works) to also wehn you touch the joystick for the player to shoot. I tried usuing cross platform Input Manger in replace of input but all it did was make it so notjing happend the player will still not shoot.

Id someone could help me out that would be great!!!

Here is the code in c#

void Update ()
{
if (fireRate == 0)
{
if (CrossPlatformInputManager.GetButtonDown(“Fire1”))
{
Shoot();
}
}
else
{
if (CrossPlatformInputManager.GetButton (“Fire1”) && Time.time > timeToFire)
{
timeToFire = Time.time + 1 / fireRate;
Shoot();
}
}
}

And the shoot method

void Shoot ()
{
Vector2 joyStickPosition = new Vector2(Camera.main.ScreenToWorldPoint(CrossPlatformInputManager.mousePosition).x, Camera.main.ScreenToWorldPoint(CrossPlatformInputManager.mousePosition).y);
Vector2 firePointPosition = new Vector2 (firePoint.position.x, firePoint.position.y);
RaycastHit2D hit = Physics2D.Raycast (firePointPosition, joyStickPosition-firePointPosition, 100, whatToHit);

Debug.DrawLine(firePointPosition, (joyStickPosition - firePointPosition)*100, Color.cyan);
if (hit.collider != null)
{
Debug.DrawLine(firePointPosition, hit.point, Color.red);
Enemy enemy = hit.collider.GetComponent();
if (enemy != null)
{
enemy.DamageEnemy(Damage);
//Debug.Log("We hit " + hit.collider.name + "and did " + Damage + “damage”);
}
}