Exemplo n.º 1
0
 public void Update(GameTime gameTime)
 {
     if (Health.Current <= 0)
     {
         DeathStrategy.Die(this);
     }
 }
Exemplo n.º 2
0
 public void SetDeathStrategy(DeathStrategy deathStrategy)
 {
     this.deathStrategy = deathStrategy;
 }