public void Initialize(WeaponHolder weaponHolder, WeaponScriptable weapon) { WeaponHolder = weaponHolder; Crosshair = weaponHolder.Controller.CrosshairComponent; WeaponStats = weapon.WeaponStats; }
public void Initialize(WeaponHolder weaponHolder, WeaponScriptable weaponScriptable) { WeaponHolder = weaponHolder; CrosshairComponent = weaponHolder.Crosshair; if (weaponScriptable) { WeaponStats = weaponScriptable.WeaponStats; } }
public virtual void Initialize(WeaponStats stats) { this.stats = stats; currentAccuracy = this.stats.Accuracy; CurrentAmmo = this.stats.AmmoPerMag; player = GameObject.Find("Player").GetComponent <PlayerStats>(); display = GetComponent <WeaponDisplay>(); Reload(); }