public UIElement(String name, Sprite image, Vector2 position) { _name = name; _image = image; _position = position; _rightClick = UIManager.RightClickEvent; _leftClick = UIManager.LeftClickEvent; _image.Position = _position; _size = _image.Size; }
static UIManager() { RightClickEvent = new RightClick(); LeftClickEvent = new LeftClick(); }