I want the Projectile to always face forward, I have the sprite facing up by default, what is wrong?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class weapon : MonoBehaviour {

public float offset;

public GameObject projectile;
public Transform shotPoint;

private float timeBtwShots;
public float startTimeBtwShots;

private void Update()
{
    Vector3 difference = Camera.main.ScreenToWorldPoint(Input.mousePosition) - transform.position;
    float rotz = Mathf.Atan2(difference.y, difference.x) * Mathf.Rad2Deg;
    transform.rotation = Quaternion.Euler(0f, 0f, rotz + offset);

    if (Input.GetMouseButtonDown(0))
        
        {
            Instantiate(projectile, shotPoint.position, transform.rotation);
            
        }
    
    
}

}
,

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class weapon : MonoBehaviour {

public float offset;

public GameObject projectile;
public Transform shotPoint;

private float timeBtwShots;
public float startTimeBtwShots;

private void Update()
{
    Vector3 difference = Camera.main.ScreenToWorldPoint(Input.mousePosition) - transform.position;
    float rotz = Mathf.Atan2(difference.y, difference.x) * Mathf.Rad2Deg;
    transform.rotation = Quaternion.Euler(0f, 0f, rotz + offset);

    if (Input.GetMouseButtonDown(0))
        
        {
            Instantiate(projectile, shotPoint.position, transform.rotation);
            
        }
    
    
}

}

if i understand your question, you just have to rotate the default texture facing to right side and not upside .
if it wasn’t your problem explain a little bit more.