Example #1
0
    public static Vector2 GetPlayerBorder(float playerLenth)
    {
        float upBoardEdgePosition   = PlayerProperties.CalculateBoardEdgePostion(upBorder, true);
        float downBoardEdgePosition = PlayerProperties.CalculateBoardEdgePostion(downBorder, false);

        return(new Vector2(upBoardEdgePosition - playerLenth / 2, downBoardEdgePosition + playerLenth / 2));
    }