Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

45 linhas
974 B

  1. using System;
  2. using CIG.Translation;
  3. using Tweening;
  4. using UnityEngine;
  5. public class TutorialPopupView : PopupBaseView
  6. {
  7. public void OnContinueClicked()
  8. {
  9. if (!base.PopupState.Closed)
  10. {
  11. ((TutorialPopupState)this.State).Continue();
  12. }
  13. }
  14. public override void OnBlackOverlayClicked()
  15. {
  16. this.OnContinueClicked();
  17. }
  18. public void UpdateInfo(ILocalizedString bodyText, ILocalizedString buttonText, bool showFlares)
  19. {
  20. this._flareTweener.gameObject.SetActive(showFlares);
  21. if (showFlares && !this._flareTweener.IsPlaying)
  22. {
  23. this._flareTweener.Play();
  24. }
  25. else if (!showFlares && this._flareTweener.IsPlaying)
  26. {
  27. this._flareTweener.Stop();
  28. }
  29. this._bodyLabel.LocalizedString = bodyText;
  30. this._buttonLabel.LocalizedString = buttonText;
  31. }
  32. [SerializeField]
  33. private LocalizedText _bodyLabel;
  34. [SerializeField]
  35. private LocalizedText _buttonLabel;
  36. [SerializeField]
  37. private Tweener _flareTweener;
  38. }