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