private void UpdateShownWeapon(WeaponContext weapon) { if (_currentView != null) { _currentView.Hide(); } _currentView = _weaponViews[weapon]; _currentView.Show(); }
public WeaponGameContext(WeaponContext context, Bin2D <IGameEntity> bin) : base(context, WeaponComponentsLookup.componentTypes, bin) { }
private void Construct(DiContainer container, WeaponContext weaponContext) { _container = container; _weaponContext = weaponContext; }
private void AddScorePoints(WeaponContext weapon) { GameContext.Current.Points.Value += weapon.Model.Bullet.ScorePoints; }