public override void Apply(DamagePreventions damagePreventions)
        {
            _damagePreventions = damagePreventions;
            _damagePrevention  = _damagePrevention ?? _damagePreventionFactory(this);
            _damagePrevention.Initialize(this, Game);

            damagePreventions.AddPrevention(_damagePrevention);
        }
        public override void Apply(DamagePreventions damagePreventions)
        {
            _damagePreventions = damagePreventions;
              _damagePrevention = _damagePrevention ?? _damagePreventionFactory(this);
              _damagePrevention.Initialize(this, Game);

              damagePreventions.AddPrevention(_damagePrevention);
        }
Exemple #3
0
        private void ShowArmorUI()
        {
            GUILayout.BeginHorizontal();

            GUILayout.Label("Damage Prevention: ");
            GUILayout.Label(DamagePrevention.ToString());

            GUILayout.EndHorizontal();
        }
 public AddDamagePrevention(DamagePrevention damagePrevention)
 {
     _damagePrevention = damagePrevention;
 }
 public AddDamagePrevention(DamagePrevention damagePrevention)
 {
     _damagePrevention = damagePrevention;
 }