private void UpdateCollider()
    {
        BoxCollider component = base.GetComponent <BoxCollider>();
        Vector3     vector    = base.transform.InverseTransformPoint(this.inputTopLeft.transform.position);
        Vector3     vector2   = base.transform.InverseTransformPoint(this.inputBottomRight.transform.position);

        component.center = (Vector3)((vector + vector2) / 2f);
        component.size   = VectorUtils.Abs(vector2 - vector);
    }
    public void SetBounds(Bounds bounds)
    {
        base.transform.localScale = Vector3.one;
        Vector3 min = base.GetComponent <Renderer>().bounds.min;
        Vector3 max = base.GetComponent <Renderer>().bounds.max;

        if (base.transform.parent != null)
        {
            min = base.transform.parent.InverseTransformPoint(min);
            max = base.transform.parent.InverseTransformPoint(max);
        }
        Vector3 vector3 = VectorUtils.Abs(max - min);
        Vector3 vector4 = new Vector3((vector3.x <= 0f) ? 0f : (bounds.size.x / vector3.x), (vector3.y <= 0f) ? 0f : (bounds.size.y / vector3.y), (vector3.z <= 0f) ? 0f : (bounds.size.z / vector3.z));

        base.transform.localScale    = vector4;
        base.transform.localPosition = bounds.center + new Vector3(0f, 0f, -this.Depth);
        base.GetComponent <Renderer>().material.mainTextureScale = vector4;
    }