25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
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. }