public BoxCollider2DRect(MonoBehaviour go) : base(go) { this.transform = go.transform; LeftEdge = new LeftEdge(this); RightEdge = new RightEdge(this); UpEdge = new UpEdge(this); DownEdge = new DownEdge(this); }
public UGUIRect(Behaviour go) : base(go) { this.transform = go.GetComponent <RectTransform>(); LeftEdge = new LeftEdge(this); RightEdge = new RightEdge(this); UpEdge = new UpEdge(this); DownEdge = new DownEdge(this); transform.GetWorldCorners(Corners); }