Exemplo n.º 1
0
 public virtual void OnPickup(PlayerActor player, GameTime gameTime)
 {
     playerRef = player;
     picked    = true;
     expirey  += gameTime.TotalGameTime.TotalSeconds;
 }
Exemplo n.º 2
0
 //i need healing
 public override void OnPickup(PlayerActor player, GameTime gameTime)
 {
     base.OnPickup(player, gameTime);
     playerRef.Heal(20);
 }
Exemplo n.º 3
0
 public override void OnPickup(PlayerActor player, GameTime gameTime)
 {
     base.OnPickup(player, gameTime);
     playerRef.SetInvuln(true);
 }