Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

27 rader
611 B

  1. using System;
  2. using CIG.Translation;
  3. public class TutorialPopupState : PopupBaseState
  4. {
  5. public void Continue()
  6. {
  7. base.ClosePopup(delegate()
  8. {
  9. Action continueAction = this._continueAction;
  10. this._continueAction = null;
  11. if (continueAction != null)
  12. {
  13. continueAction();
  14. }
  15. });
  16. }
  17. public void UpdateInfo(ILocalizedString bodyText, ILocalizedString buttonText, bool showFlares, Action continueAction)
  18. {
  19. this._continueAction = continueAction;
  20. ((TutorialPopupView)this.View).UpdateInfo(bodyText, buttonText, showFlares);
  21. }
  22. private Action _continueAction;
  23. }