Пример #1
0
 public RadioButtonGroup(Actor actor) : base(actor)
 {
     this.layoutGroup = RequireComponent <LayoutGroup>();
 }
Пример #2
0
 public LayoutElement(Actor actor) : base(actor)
 {
     this.boundingRect = RequireComponent <BoundingRect>();
     this.parentGroup  = this.actor.GetComponentInImmediateParent <LayoutGroup>();
     Debug.Assert(this.parentGroup != null, "LayoutElement does not have a LayoutGroup parent");
 }