protected virtual void Awake()
        {
            extension = (extension != null) ? extension : GetComponent <AbstractMarketScreen>();

            extension.Extensions += ActivateExtension;
        }
Example #2
0
 protected override void OnScreenFocus(AbstractMarketScreen screen)
 {
     screen.SetUI(null, this);
 }
Example #3
0
 private static void Hide(AbstractMarketScreen screen)
 {
     screen.Hide();
 }
Example #4
0
 private static void Show(AbstractMarketScreen screen)
 {
     screen.Show();
 }
Example #5
0
 /// <summary>
 /// Override to do additional functions when a screen is put in focus
 /// </summary>
 protected virtual void OnScreenFocus(AbstractMarketScreen screen)
 {
 }
Example #6
0
 /// <summary>
 /// Enable a given screen and disable all others
 /// </summary>
 public void PutScreenInFocus(AbstractMarketScreen screen)
 {
     screens.Screens.ForEach(Hide);
     Show(screen);
     OnScreenFocus(screen);
 }