Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

39 рядки
879 B

  1. using System;
  2. using SUISSEngine;
  3. public class TooMuchParallelBuildsPopupState : PopupBaseState
  4. {
  5. public override void ClosePopup(Action callback, bool animate, bool synchronous)
  6. {
  7. if (this._cancelAction != null)
  8. {
  9. this._cancelAction();
  10. this._cancelAction = null;
  11. }
  12. this._succesAction = null;
  13. base.ClosePopup(callback, animate, synchronous);
  14. }
  15. public void UpdateInfo(Action succesAction, Action cancelAction, Currencies extraCost)
  16. {
  17. this._succesAction = succesAction;
  18. this._cancelAction = cancelAction;
  19. ((TooMuchParallelBuildsPopupView)this.View).UpdateInfo(extraCost);
  20. }
  21. public void Buy()
  22. {
  23. if (this._succesAction != null)
  24. {
  25. this._succesAction();
  26. this._succesAction = null;
  27. this._cancelAction = null;
  28. }
  29. base.ClosePopup();
  30. }
  31. private Action _succesAction;
  32. private Action _cancelAction;
  33. }