wangguan
2020-11-13 87ce9cceddd08af1579b3b74451ca0754627e0ec
结束页面动效完毕后才能关闭
Loading页面重置所有事件
6 files modified
18 ■■■■ changed files
Assets/Materials/UI/tileTowerVSMat.mat 2 ●●● patch | view | raw | blame | history
Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs 1 ●●●● patch | view | raw | blame | history
Assets/Scripts/Event/EventBase.cs 3 ●●●●● patch | view | raw | blame | history
Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs 2 ●●●●● patch | view | raw | blame | history
Assets/Scripts/Manager/ManagerRoot.cs 2 ●●● patch | view | raw | blame | history
Assets/Scripts/UI/FinalPanel/FinalPanel.cs 8 ●●●● patch | view | raw | blame | history
Assets/Materials/UI/tileTowerVSMat.mat
@@ -40,7 +40,7 @@
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MainTex:
        m_Texture: {fileID: 2800000, guid: 8c9a3d26120e78f40aa4ef9ed23d573c, type: 3}
        m_Texture: {fileID: 2800000, guid: 93f40a01d57fbff418fc0b54b6ab7d9f, type: 3}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MetallicGlossMap:
Assets/Scripts/Common/ErrorLogOnGUIMyTools.cs
@@ -19,6 +19,7 @@
            DontDestroyOnLoad(this);
            Application.logMessageReceived += (string condition, string stackTrace, LogType type) =>
            {
                if (type == LogType.Error)
                m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace));
            };
        }
Assets/Scripts/Event/EventBase.cs
@@ -18,6 +18,9 @@
        //存放各种事件的字典
        protected Dictionary<int, Delegate> m_EventTable = new Dictionary<int, Delegate>();
        public void RemoveAllListener(){
            m_EventTable = new Dictionary<int, Delegate>();
        }
        #region 私有方法
        private void OnListenerAdding(int eventType, Delegate callback)
Assets/Scripts/GameAnalytics_SDK/UI/LoginUI.cs
@@ -27,6 +27,8 @@
    void Start()
    {
        EventCenter.Ins.RemoveAllListener();
        isLogining = false;
        repairBtn = transform.Find("Panel/RepairBtn").GetComponent<Button>();
Assets/Scripts/Manager/ManagerRoot.cs
@@ -18,7 +18,7 @@
            gameObject.AddComponent<TDAA_SDKManager>();
            gameObject.AddComponent<AudioSourceManager>();
            //gameObject.AddComponent<ErrorLogOnGUIMyTools>();
            gameObject.AddComponent<ErrorLogOnGUIMyTools>();
            //gameObject.AddComponent<JsonDataReader>();
        }
Assets/Scripts/UI/FinalPanel/FinalPanel.cs
@@ -24,16 +24,18 @@
    public string endlessGameScene = "Endless";
    public string loadingScene = "LoadingScene";
    Button closeBtn;
    // Start is called before the first frame update
    void Start()
    {
        transform.Find("BackGround").GetComponent<Button>().onClick.AddListener(() =>
        closeBtn = transform.Find("BackGround").GetComponent<Button>();
        closeBtn.onClick.AddListener(() =>
        {
            gameObject.SetActive(false);
            GameConfig.NextSceneName = endlessGameScene;
            SceneManager.LoadScene(loadingScene);
        });
        closeBtn.interactable = false;
    }
    Text waveText;
    GameObject image_HScore;
@@ -153,6 +155,8 @@
        {
            playEffectAC();
        }
        closeBtn.interactable = true;
    }
    /// <summary>