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);
 }
Beispiel #2
0
 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);
 }