少年修仙传客户端代码仓库
client_linchunjie
2019-04-24 413738d56e502b0e5c5b5f81993ec619a1d522f0
6589 【2.0】【开发】完成增加法宝进度的任务飘粒子特效
3个文件已修改
21 ■■■■ 已修改文件
System/Treasure/FunctionUnlockFlyObject.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasureChapterWin.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/TreasureCollectBriefInfoBehaviour.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Treasure/FunctionUnlockFlyObject.cs
@@ -69,7 +69,7 @@
                    originalScale = 9f;
                    break;
                case FunctionUnlockType.TreasureChapter:
                    originalScale = 1f;
                    originalScale = 2f;
                    var treasureConfig = TreasureConfig.Get(m_Id);
                    m_FunctionIcon.SetSprite(treasureConfig.Icon);
                    break;
System/Treasure/TreasureChapterWin.cs
@@ -14,6 +14,7 @@
    public class TreasureChapterWin : Window
    {
        [SerializeField] RawImage m_GaussianMask;
        [SerializeField] UIAlphaTween m_AlphaTween;
        [SerializeField] Text m_ChapterName;
        [SerializeField] Image m_ChapterIcon;
@@ -54,21 +55,23 @@
            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()
@@ -97,12 +100,19 @@
        }
        #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);
@@ -127,6 +137,7 @@
            {
                return;
            }
            m_GaussianMask.gameObject.SetActive(false);
            flying = true;
            m_AlphaTween.from = 1f;
            m_AlphaTween.to = 0f;
System/Treasure/TreasureCollectBriefInfoBehaviour.cs
@@ -72,7 +72,6 @@
        {
            if (id == displayId)
            {
                DisplayProgress();
                m_ProgressEffect.Play();
                if (m_CacheCoroutine != null)
                {
@@ -87,6 +86,7 @@
        {
            yield return WaitingForSecondConst.WaitMS1500;
            m_ProgressEffect.StopImediatly();
            DisplayProgress();
        }
        void DisplayBase()