少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-29 502ae40a543ec31c041e5fa41ed9098c45dc84fb
4232 许愿池功能开发
1个文件已修改
14 ■■■■ 已修改文件
System/OpenServerActivity/WishingPoolWin.cs 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/OpenServerActivity/WishingPoolWin.cs
@@ -27,6 +27,8 @@
        [SerializeField] UIAlphaTween alphaTween;
        [SerializeField] List<Vector2> startPos = new List<Vector2>();
        [SerializeField] List<Vector2> endPos = new List<Vector2>();
        [Header("最小时间间隔")] [SerializeField] int minDuration = 3;
        [Header("最大时间间隔")] [SerializeField] int maxDuration = 6;
        ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
        WishingPoolModel wishingModel { get { return ModelCenter.Instance.GetModel<WishingPoolModel>(); } }
@@ -105,8 +107,16 @@
            alphaTween.to = 1;
            alphaTween.SetStartState();
            handImg.gameObject.SetActive(true);
            int offset = wishingModel.handStartIndex % 4 - wishingModel.handEndIndex;
            positionTween.duration = Mathf.Max(2, Mathf.Abs(offset));
            int offset = Mathf.Abs(wishingModel.handStartIndex % 4 - wishingModel.handEndIndex);
            if(offset < minDuration)
            {
                offset = minDuration;
            }
            else if(offset > maxDuration)
            {
                offset = maxDuration;
            }
            positionTween.duration = Mathf.Max(2,offset);
            alphaTween.Play();
            positionTween.Play(() =>
            {