/// <summary> /// Constructor /// </summary> /// <param name="game">The Game object</param> /// <param name="textureName">Texture Name</param> /// <param name="targetRectangle">Position of the component on the screen</param> /// <param name="initialValue">Initial value</param> public Button(OdysseusUI game, string textureName, Rectangle targetRectangle, int initialValue) : base(game, targetRectangle) { asset = textureName; value = initialValue; }
/// <summary> /// Constructor /// </summary> /// <param name="game">The Game object</param> /// <param name="targetRectangle">Position of the component on the screen</param> public Clickable(OdysseusUI game, Rectangle targetRectangle) : base(game) { rectangle = targetRectangle; }