| | |
| | | using UnityEngine.UI; |
| | | using DG.Tweening; |
| | | using System;
|
| | | using TableConfig;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | { |
| | |
| | | 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;//旋转时间
|
| | |
| | | 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()
|
| | | {
|
| | |
| | | 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)
|
| | | {
|
| | |
| | | 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;
|