i have a weapon system based on SO that has a base weapon class and some inheritance that are different types of weapon and each of them has the CreatAssetMenu. and i also have a player with a ChangeWeapon function that looks like this:
public void WeaponChange(Weapon weapon)
{
CurrentWeapon = weapon;
CurrentWeapon.StartServerRcp();
WeaponMeshFileter.mesh = weapon.displayMesh;
WeaponMeshRenderer.material = weapon.material;
}
now i want to an instance of the weapon SO Object not the Object itself (so when i run the functions inside the SO it dosn't change the actual values)
