Game Development Reference
In-Depth Information
Figure 10.4
Rendering in the title.
public class Button
{
EventHandler _onPressEvent;
Text _label;
Vector _position
¼
new Vector();
public Vector Position
{
get { return _position; }
set
{
_position
¼
value;
UpdatePosition();
}
}
public Button(EventHandler onPressEvent, Text label)
{
_onPressEvent
¼
onPressEvent;
Search WWH ::
Custom Search