结束页面动效完毕后才能关闭
Loading页面重置所有事件
| | |
| | | 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: |
| | |
| | | DontDestroyOnLoad(this); |
| | | Application.logMessageReceived += (string condition, string stackTrace, LogType type) => |
| | | { |
| | | m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace)); |
| | | if (type == LogType.Error) |
| | | m_logEntries.Add(string.Format("{0}\n{1}", condition, stackTrace)); |
| | | }; |
| | | } |
| | | |
| | |
| | | //存放各种事件的字典 |
| | | 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) |
| | |
| | | void Start() |
| | | { |
| | | |
| | | EventCenter.Ins.RemoveAllListener(); |
| | | |
| | | isLogining = false; |
| | | |
| | | repairBtn = transform.Find("Panel/RepairBtn").GetComponent<Button>(); |
| | |
| | | gameObject.AddComponent<TDAA_SDKManager>(); |
| | | gameObject.AddComponent<AudioSourceManager>(); |
| | | |
| | | //gameObject.AddComponent<ErrorLogOnGUIMyTools>(); |
| | | gameObject.AddComponent<ErrorLogOnGUIMyTools>(); |
| | | //gameObject.AddComponent<JsonDataReader>(); |
| | | |
| | | } |
| | |
| | | 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; |
| | |
| | | { |
| | | playEffectAC(); |
| | | } |
| | | |
| | | closeBtn.interactable = true; |
| | | } |
| | | |
| | | /// <summary> |