private void MoveLeft() { flip = true; move(roation.Left, Parameters.moveSpeed); foreach (var b in ActiveElements.GetActiveBlocks(position)) { if (Collide(b)) { move(roation.Right, Parameters.moveSpeed); OnWallHit?.Invoke(this, null); break; } } }
public void BroadcastWallHit() { OnWallHit?.Invoke(); }