Exemple #1
0
 public static void RightSideColission(iSidesCollidingAbility _object)
 {
     if (_object.GetCollisionRectangle().position.X >= Constants.screenWidth - _object.GetCollisionRectangle().width)
     {
         _object.OnCollideWithRightSide();
     }
 }
Exemple #2
0
 public static void LeftSideColission(iSidesCollidingAbility _object)
 {
     if (_object.GetCollisionRectangle().position.X <= 0)
     {
         _object.OnCollideWithLeftSide();
     }
 }