public BoxSelectInputComponent(Rectangle bounds, Selector selector, GameObject holder) : base(bounds, holder) { _graphics = Holder.GetComponent <BoxSelectGraphicalComponent>() ?? throw new NullReferenceException(); _selector = selector ?? throw new NullReferenceException(); }
public PortraitUserInputComponent(Selector selector, GameObject subject, GameObject holder) : base(new Rectangle(), holder) { _gameObject = subject ?? throw new NullReferenceException(); _selector = selector ?? throw new NullReferenceException(); Bounds = Holder.GetComponent <PortatGraphicsComponent>().Bounds ?? throw new NullReferenceException(); }