Ejemplo n.º 1
0
        private void UpdateShownWeapon(WeaponContext weapon)
        {
            if (_currentView != null)
            {
                _currentView.Hide();
            }

            _currentView = _weaponViews[weapon];
            _currentView.Show();
        }
Ejemplo n.º 2
0
 public WeaponGameContext(WeaponContext context, Bin2D <IGameEntity> bin) : base(context, WeaponComponentsLookup.componentTypes, bin)
 {
 }
Ejemplo n.º 3
0
 private void Construct(DiContainer container, WeaponContext weaponContext)
 {
     _container     = container;
     _weaponContext = weaponContext;
 }
Ejemplo n.º 4
0
 private void AddScorePoints(WeaponContext weapon)
 {
     GameContext.Current.Points.Value += weapon.Model.Bullet.ScorePoints;
 }