少年修仙传客户端代码仓库
client_linchunjie
2018-08-30 6f3661db5095f1bcd161f8381e875227460ada89
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
2个文件已修改
29 ■■■■ 已修改文件
Fight/PrepareHandler.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmCollectWin.cs 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/PrepareHandler.cs
@@ -41,7 +41,7 @@
        }
        H0812 = h0812;
        isPreparing = true;
        GActorPlayerBase _player = null;
        GActorFight _fighter = null;
System/Realm/RealmCollectWin.cs
@@ -9,7 +9,8 @@
using UnityEngine;
using UnityEngine.UI;
namespace Snxxz.UI {
namespace Snxxz.UI
{
    public class RealmCollectWin : Window
    {
@@ -57,13 +58,15 @@
        private void OnPlayerCollectEnd(int palyerID, byte type)
        {
            if (palyerID == PlayerDatas.Instance.baseData.PlayerID) {
            if (palyerID == PlayerDatas.Instance.baseData.PlayerID)
            {
                CloseImmediately();
            }
        }
        protected override void OnAfterOpen()
        {
        }
        protected override void OnPreClose()
@@ -75,18 +78,28 @@
            PlayerRealmData.OnPlayerCollectEnd -= OnPlayerCollectEnd;
        }
        protected override void OnActived()
        {
            if (!PrepareHandler.Instance.isPreparing)
            {
                CloseClick();
            }
        }
        protected override void LateUpdate()
        {
            m_Time += Time.deltaTime;
            if (m_Time > 0.5f) {
            if (m_Time > 0.5f)
            {
                m_Time = 0;
                progressTip.text =Language.Get("RealmWin_Bewrite_45") + miscStrList[miscPoint];
                progressTip.text = Language.Get("RealmWin_Bewrite_45") + miscStrList[miscPoint];
                miscPoint++;
                if (miscPoint >= 3) miscPoint = 0;
            }
            progress.value = 1-(float)(endTime - TimeUtility.ServerNow).TotalMilliseconds / PlayerDatas.Instance.realm.CollectTime;
            progressText.text = (float)Math.Round(progress.value * 100,0) + "%";
            if (progress.value >= 1) {
            progress.value = 1 - (float)(endTime - TimeUtility.ServerNow).TotalMilliseconds / PlayerDatas.Instance.realm.CollectTime;
            progressText.text = (float)Math.Round(progress.value * 100, 0) + "%";
            if (progress.value >= 1)
            {
                CloseImmediately();
            }
        }