| | |
| | | [SerializeField] Image officialIcon; |
| | | [SerializeField] Image officialNextIcon; |
| | | [SerializeField] Button closeBtn; |
| | | [SerializeField] Text addLVText; |
| | | [SerializeField] PositionTween[] paopaoArr; |
| | | [SerializeField] Text[] paopaoTextArrName; |
| | | [SerializeField] Text[] paopaoTextArrValue; |
| | |
| | | for (int i = 0; i < paopaoArr.Length; i++) |
| | | { |
| | | paopaoArr[i].Play(); |
| | | paopaoTextArrName[i].text = PlayerPropertyConfig.Get(nextConfig.AddAttrType[i]).Name; |
| | | paopaoTextArrValue[i].text = "+" + PlayerPropertyConfig.GetValueDescription(nextConfig.AddAttrType[i], nextConfig.AddAttrNum[i]); |
| | | if (i < nextConfig.AddAttrType.Length) |
| | | { |
| | | paopaoTextArrName[i].text = PlayerPropertyConfig.Get(nextConfig.AddAttrType[i]).Name; |
| | | paopaoTextArrValue[i].text = "+" + PlayerPropertyConfig.GetValueDescription(nextConfig.AddAttrType[i], nextConfig.AddAttrNum[i]); |
| | | } |
| | | } |
| | | |
| | | addLVText.text = "+" + (nextConfig.LVMax - config.LVMax); |
| | | |
| | | RefreshBtn(); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | //所有泡泡飞向按钮 |
| | | for (int i = 0; i < paopaoArr.Length; i++) |
| | | { |
| | | paopaoArr[i].Stop(); |
| | | paopaoArr[i].transform.DOLocalMove(lvUpBtn.transform.localPosition, 0.4f); |
| | | } |
| | | effectPlayer.Play(); |
| | | |
| | | upEffect.onComplete = () => |
| | | { |
| | | CA523_tagCMRealmLVUp pak = new CA523_tagCMRealmLVUp(); |
| | | GameNetSystem.Instance.SendInfo(pak); |
| | | }; |
| | | upEffect.Play(); |
| | | |
| | | effectPlayer.onComplete = () => |
| | | { |
| | | upEffect.Play(); |
| | | }; |
| | | |
| | | //所有泡泡飞向按钮 |
| | | for (int i = 0; i < paopaoArr.Length; i++) |
| | | { |
| | | int index = i; |
| | | paopaoArr[i].Stop(); |
| | | paopaoArr[i].transform.DOLocalMove(lvUpBtn.transform.localPosition, 0.3f).onComplete = () => |
| | | { |
| | | if (index == 0) |
| | | { |
| | | effectPlayer.Play(); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | } |
| | | |
| | | |