少年修仙传客户端代码仓库
5689 【前端】【1.4.100】绑玉转盘新增客户端标识,防止信息提示出现前后端不对应
1个文件已修改
18 ■■■■ 已修改文件
System/Vip/VipInvest/RotatePointer.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Vip/VipInvest/RotatePointer.cs
@@ -7,6 +7,7 @@
using UnityEngine.UI;
using DG.Tweening;
using System;
using TableConfig;
namespace Snxxz.UI
{
@@ -18,6 +19,7 @@
        private float Acceleration = 0;//加速度
        private float _time;
        private bool IsRotateBool = false;//是否进行旋转
        private int BindJadeWheelNotice = 0;//所需提示的金额
        public static event Action<bool> IsButtonShow;
        [Header("总旋转时间")]
        public float ContinuousTime = 4;//旋转时间
@@ -40,6 +42,11 @@
            transform.localRotation = Quaternion.Euler(0, 0, -Angle);
            Acceleration = (MaxSpeed - MinSpeed) / SpeedTime;
            m_CheckDisplay.CloseAll();
            if (BindJadeWheelNotice <= 0)
            {
                var config = Config.Instance.Get<FuncConfigConfig>("BindJadeWheelNotice").Numerical1;
                BindJadeWheelNotice = int.Parse(config);
            }
        }
        private void OnEnable()
        {
@@ -63,7 +70,11 @@
                    m_CheckDisplay.ShowSelected(wheelOfFortuneModel.Lattice);
                    int money = ((int)UIHelper.GetMoneyCnt(2) - FairyJade);
                    string str=UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName);
                    SysNotifyMgr.Instance.ShowTip("BindJadeNotice", str, money);
                    if (money>=BindJadeWheelNotice)
                    {
                        SysNotifyMgr.Instance.ShowTip("BindJadeNotice", str, money);
                    }
                    FairyJade = (int)UIHelper.GetMoneyCnt(2);
                    if (IsButtonShow != null)
                    {
@@ -119,7 +130,10 @@
                        m_CheckDisplay.ShowSelected(wheelOfFortuneModel.Lattice);
                        int money = ((int)UIHelper.GetMoneyCnt(2) - FairyJade);
                        string str = UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName);
                        SysNotifyMgr.Instance.ShowTip("BindJadeNotice", str, money);
                        if (money >= BindJadeWheelNotice)
                        {
                            SysNotifyMgr.Instance.ShowTip("BindJadeNotice", str, money);
                        }
                        FairyJade = (int)UIHelper.GetMoneyCnt(2);
                    });
                    IsRotateBool = false;