提交 22a86995 编写于 作者: T tanghai

UIComponent增加Get方法

上级 14a5ab72
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using ETModel;
using UnityEngine;
......@@ -39,5 +40,12 @@ namespace ETHotfix
this.uis.Remove(name);
ui.Dispose();
}
public UI Get(string name)
{
UI ui = null;
this.uis.TryGetValue(name, out ui);
return ui;
}
}
}
\ No newline at end of file
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace ETModel
......@@ -38,5 +39,12 @@ namespace ETModel
this.uis.Remove(name);
ui.Dispose();
}
public UI Get(string name)
{
UI ui = null;
this.uis.TryGetValue(name, out ui);
return ui;
}
}
}
\ No newline at end of file
......@@ -37,7 +37,6 @@ GraphicsSettings:
- {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16002, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册