Пример #1
0
    void DrawBorder()
    {
        Gizmos.color = Color.yellow;

        Vector3 upperRight = new Vector3(StandardValue.bulletMoveBorder.right, StandardValue.bulletMoveBorder.top, 0);
        Vector3 lowerRight = new Vector3(StandardValue.bulletMoveBorder.right, StandardValue.bulletMoveBorder.bottom, 0);
        Vector3 lowerLeft  = new Vector3(StandardValue.bulletMoveBorder.left, StandardValue.bulletMoveBorder.bottom, 0);
        Vector3 upperLeft  = new Vector3(StandardValue.bulletMoveBorder.left, StandardValue.bulletMoveBorder.top, 0);

        MyGizmos.DrawRectangle(upperRight, lowerRight, lowerLeft, upperLeft);
    }
    void DrawAdjustmentBorder()
    {
        Gizmos.color = Color.yellow;

        Vector3 upperRight = new Vector3(_adjustmentBorder.right, _adjustmentBorder.top, 0);
        Vector3 lowerRight = new Vector3(_adjustmentBorder.right, _adjustmentBorder.bottom, 0);
        Vector3 lowerLeft  = new Vector3(_adjustmentBorder.left, _adjustmentBorder.bottom, 0);
        Vector3 upperLeft  = new Vector3(_adjustmentBorder.left, _adjustmentBorder.top, 0);

        MyGizmos.DrawRectangle(upperRight, lowerRight, lowerLeft, upperLeft);
    }
    void DrawTargetBorder()
    {
        Gizmos.color = Color.green;

        Vector3 upperRight = new Vector3(_targetBorder.right, _targetBorder.top, 0);
        Vector3 lowerRight = new Vector3(_targetBorder.right, _targetBorder.bottom, 0);
        Vector3 lowerLeft  = new Vector3(_targetBorder.left, _targetBorder.bottom, 0);
        Vector3 upperLeft  = new Vector3(_targetBorder.left, _targetBorder.top, 0);

        MyGizmos.DrawRectangle(upperRight, lowerRight, lowerLeft, upperLeft);
    }
    void DrawMoveBorder()
    {
        Gizmos.color = Color.red;

        Vector3 upperRight = new Vector3(_moveBorder.right, _moveBorder.top, 0);
        Vector3 lowerRight = new Vector3(_moveBorder.right, _moveBorder.bottom, 0);
        Vector3 lowerLeft  = new Vector3(_moveBorder.left, _moveBorder.bottom, 0);
        Vector3 upperLeft  = new Vector3(_moveBorder.left, _moveBorder.top, 0);

        MyGizmos.DrawRectangle(upperRight, lowerRight, lowerLeft, upperLeft);
    }