public static Initialize ( LeagueSharp damageToUnitDelegate ) : void | ||
damageToUnitDelegate | LeagueSharp | |
Résultat | void |
public static void Initialize(LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnitDelegate damageToUnitDelegate)
{
// Apply needed field delegate for damage calculation
damageToUnit = damageToUnitDelegate;
DrawingColor = Color.GreenYellow;
Enabled = true;
// Register event handlers
Drawing.OnDraw += OnDraw;
}