public void Collision(BaseObject col) { if (col is MapBlockColission) { pos = Oldpos; } if (col is EnemyBase) { hp -= (col as EnemyBase).damage; if (hp <= 0) { dead = true; } col.dead = true; scoreBoard.UpdateraScoreLista(score.ToString()); StartMeny.OpenMenu(true); } }