public override void Apply(DamagePreventions damagePreventions) { _damagePreventions = damagePreventions; _damagePrevention = _damagePrevention ?? _damagePreventionFactory(this); _damagePrevention.Initialize(this, Game); damagePreventions.AddPrevention(_damagePrevention); }
private void ShowArmorUI() { GUILayout.BeginHorizontal(); GUILayout.Label("Damage Prevention: "); GUILayout.Label(DamagePrevention.ToString()); GUILayout.EndHorizontal(); }
public AddDamagePrevention(DamagePrevention damagePrevention) { _damagePrevention = damagePrevention; }