How to make a Projectile turn in the direction of Gun facing.....

I am new to Unity…So I have a Script that shoots projectiles but the projectile is always in a rotation of -90… (If I shoot in the Z axis then the bullet travel in the Z axis and the Prefab in correct direction… If I turn the character and make him face in the X axis then shoot the bullet. The bullet will travel forward but the prefab is still facing in the Z axis here is my Projectile Shooter code:

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

public class ProjectileShooting : MonoBehaviour
{



    public Camera Cam;

    private Vector3 Destination;

    public bool IsShooting = false;

    public GameObject Projectile;

    public Transform FirePoint;

    private float TimeToFire;

    public float FireRate = 10;

    public float ProjectileSpeed = 30;

    public ParticleSystem MuzzleFlash;

    
    private void Update()
    {
        if (Input.GetButton("Fire1") && Time.time >= TimeToFire)
        {
            TimeToFire = Time.time + 1 / FireRate;
            ShootProjectile();
            MuzzleFlash.Play();
        }

        if (Input.GetButtonUp("Fire1"))
        {
            IsShooting = false;
        }
        
    }


    private void ShootProjectile()
    {
        IsShooting = true;

        Ray ray = Cam.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0));
        RaycastHit hit;

        if (Physics.Raycast(ray, out hit))
            Destination = hit.point;
        else
            Destination = ray.GetPoint(1000);

        InstantiateProjectile();

    }


    void InstantiateProjectile()
    {
        var ProjectileObject = Instantiate(Projectile, FirePoint.position, Quaternion.identity) as GameObject;
        ProjectileObject.GetComponent<Rigidbody>().velocity = (Destination - FirePoint.position).normalized * ProjectileSpeed;

    }


}

And Then There is The “BULLET” Code which sits on the Bullet Prefab:

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

public class BulletProjectile : MonoBehaviour
{
    public GameObject ImpactEffect;

    private bool Collided;


    private void OnCollisionEnter(Collision collision)
    {
        if(collision.gameObject.tag != "Bullet" && collision.gameObject.tag != "Player" && !Collided)
        {
            Collided = true;

            var Impact = Instantiate(ImpactEffect, collision.contacts[0].point, Quaternion.identity) as GameObject;

            Destroy(Impact, 2);

            Destroy(gameObject);
        }
    }

}

Can somebody please Help me I am Stuck on this in My FPS Project… ANY ANSWERS APPRECIATED…

hi PratikBangre

you can use gameobject.transform.up or gameobject.transform.right or gameobject.transform.forward read reference of
Transform