public override void AttachTo(IColossalControl control) { control.AttachControl(Panel); if (HorizontalScrollbar != null) { HorizontalScrollbar.AttachTo(control); } if (VerticalScrollbar != null) { VerticalScrollbar.AttachTo(control); } }
public override void AttachTo(GameObject gameObject) { Panel.GameObject.transform.parent = gameObject.transform; if (HorizontalScrollbar != null) { HorizontalScrollbar.AttachTo(gameObject); } if (VerticalScrollbar != null) { VerticalScrollbar.AttachTo(gameObject); } }