Exemple #1
0
 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);
 }
Exemple #2
0
 protected override void Awake()
 {
     textPresentersFeeder = new TextPresentersFeeder(this);
     closeButton          = TryFind <Widget>("CloseButton");
     if (closeButton != null)
     {
         closeButton.Clicked += () => {
             if (Closing != null)
             {
                 Closing();
             }
         };
     }
     RefreshPresentation();
 }