public InstanceWeapon AddWeapon(WeaponRecord weaponRecord) { this.weapons = this.weapons ?? new List <InstanceWeapon>(); var instanceWeapon = new InstanceWeapon(weaponRecord); this.weapons.Add(instanceWeapon); return(instanceWeapon); }
public void Change(InstanceWeapon instanceWeapon, float coolTimeSeconds) { this.InstanceWeapon = instanceWeapon; this.coolTimeSeconds.Value = coolTimeSeconds; }
public void Change(InstanceWeapon instanceWeapon) { this.Change(instanceWeapon, instanceWeapon == null ? 0.0f : instanceWeapon.WeaponRecord.CoolTimeSeconds); }