public void SetWeapon(ScriptableObjectReference weaponReference) { Weapon weapon = (Weapon)weaponReference.value; //take the value from the input field this.Weapon = EntityWeapon.FromWeapon(weapon); //turn it into the EntityWeapon Debug.Log($"weapon: {Weapon.Weapon.WeaponName}"); }
public void SetWeapon(Weapon weapon) { Weapon = EntityWeapon.FromWeapon(weapon); }