public void UpdateWeapon(Weapon weapon) { if (weapon == null || Weapon == null || weapon.GetType() != Weapon.GetType()) Weapon = weapon; else Weapon.Update(weapon); }
public virtual void Update(Weapon upd) { Firing = upd.Firing; }
public WeaponUpdate(Entity entity) { entityId = entity.Id; this.weapon = entity.Get<WeaponComponent>().Weapon; }
public WeaponComponent(Weapon weapon) { Weapon = weapon; }