Example #1
0
 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;
         }
     }
 }
Example #2
0
 public void BroadcastWallHit()
 {
     OnWallHit?.Invoke();
 }