public override void ChangeStats(ELEMENTSTATS statistics, int value) { switch (statistics) { case ELEMENTSTATS.HEAL: playerData.currentPlayerHealt -= value; HitMe(value); if (playerData.currentPlayerHealt <= 0) { playerData.currentPlayerHealt = 0; this.status = ElementStatus.DEAD; IamDead(); } break; case ELEMENTSTATS.SPEED: playerData.playerSpeed += value; break; case ELEMENTSTATS.ITEMSCOUNT: playerData.playerItemCount += value; RefreshGuears(this.playerData.playerItemCount); break; default: break; } }
public virtual void ChangeStats(ELEMENTSTATS statistics, int value) { }