Exemple #1
0
 public HealthChangedEventArgs(Player player, int health_was, int health_now)
 {
     Player = player;
     HealthWas = health_was;
     HealthNow = health_now;
 }
Exemple #2
0
 public HealthMeter(RenderSet render_set, double x, double y, Player player)
     : base(render_set, x, y, Texture.Get("sprite_health_meter_atlas"))
 {
     _Player = player;
     player.HealthChanged += OnHealthChanged;
 }