Example #1
0
        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);
        }
Example #3
0
        private void ShowArmorUI()
        {
            GUILayout.BeginHorizontal();

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

            GUILayout.EndHorizontal();
        }
Example #4
0
 public AddDamagePrevention(DamagePrevention damagePrevention)
 {
     _damagePrevention = damagePrevention;
 }
 public AddDamagePrevention(DamagePrevention damagePrevention)
 {
     _damagePrevention = damagePrevention;
 }