| | |
| | |
|
| | | public class TreasureChapterWin : Window
|
| | | {
|
| | | [SerializeField] RawImage m_GaussianMask;
|
| | | [SerializeField] UIAlphaTween m_AlphaTween;
|
| | | [SerializeField] Text m_ChapterName;
|
| | | [SerializeField] Image m_ChapterIcon;
|
| | |
| | |
|
| | | flying = false;
|
| | |
|
| | | m_CloseRemind.gameObject.SetActive(false);
|
| | | m_GaussianMask.gameObject.SetActive(false);
|
| | |
|
| | | m_AlphaTween.from = 0f;
|
| | | m_AlphaTween.to = 1f;
|
| | | m_AlphaTween.SetStartState();
|
| | |
|
| | | m_CloseRemind.gameObject.SetActive(false);
|
| | |
|
| | | PlayerDatas.Instance.hero.StopAll();
|
| | |
|
| | | Display();
|
| | | m_AlphaTween.SetStartState();
|
| | | }
|
| | |
|
| | | protected override void OnActived()
|
| | | {
|
| | | base.OnActived();
|
| | | m_AlphaTween.Play();
|
| | | CameraUtility.ScreenShotCut(m_GaussianMask, DoPrepare, true);
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | |
| | | }
|
| | | #endregion
|
| | |
|
| | | private void DoPrepare()
|
| | | {
|
| | | m_GaussianMask.gameObject.SetActive(true);
|
| | | m_AlphaTween.Play();
|
| | | }
|
| | |
|
| | | void Display()
|
| | | {
|
| | | var instance = UIUtility.CreateWidget("TreasureChapterFlyObject", "TreasureChapterFlyObject");
|
| | | instance.transform.SetParentEx(m_ContainerFly, Vector3.zero, Quaternion.identity, Vector3.one);
|
| | | flyObject = instance.GetComponent<FunctionUnlockFlyObject>();
|
| | | flyObject.SetContent(FunctionUnlockType.TreasureChapter, model.treasureChapterId);
|
| | | flyObject.SetSpeed(6f);
|
| | | flyObject.gameObject.SetActive(true);
|
| | |
|
| | | var config = TreasureConfig.Get(model.treasureChapterId);
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | m_GaussianMask.gameObject.SetActive(false);
|
| | | flying = true;
|
| | | m_AlphaTween.from = 1f;
|
| | | m_AlphaTween.to = 0f;
|