protected override void Awake() { // On the current frame the button contents may not be loaded, // so delay its initialization until the next frame. SetState(InitialState()); textPresentersFeeder = new TextPresentersFeeder(this); clickGesture = new ClickGesture(); Gestures.Add(clickGesture); }
protected override void Awake() { textPresentersFeeder = new TextPresentersFeeder(this); closeButton = TryFind <Widget>("CloseButton"); if (closeButton != null) { closeButton.Clicked += () => { if (Closing != null) { Closing(); } }; } RefreshPresentation(); }