How can player follow where the weapon is?

How can i set the player to follow the weapon(North, East, South, West). So if the gun move to the direction, the player also follow the weapon to the direction ?
ANSWER WITH C# CODE

In Unity, you could simply set the Player as a child of the weapon, but if you want c# code, then you want this in the player script:
public Transform weapon;

void Update(){
transform.position = weapon.position;
transform.rotation = weapon.rotation;
}