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