refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -21,8 +21,8 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
internal GameObject m_configBrowserPrefab;
|
||||
|
||||
BrowserTab _currentTab;
|
||||
readonly Dictionary<int, BrowserTab> _tabMap = new Dictionary<int, BrowserTab>();
|
||||
readonly Dictionary<BrowserTab, ResourceBrowser> _tabs = new Dictionary<BrowserTab, ResourceBrowser>();
|
||||
readonly Dictionary<int, BrowserTab> _tabMap = new();
|
||||
readonly Dictionary<BrowserTab, ResourceBrowser> _tabs = new();
|
||||
|
||||
public ActionManager Actions { get; private set; }
|
||||
|
||||
@@ -77,8 +77,7 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
return _tabMap.ContainsKey(id);
|
||||
}
|
||||
public bool TryOpenTab(int id) {
|
||||
BrowserTab tab;
|
||||
if (_tabMap.TryGetValue(id, out tab)) {
|
||||
if (_tabMap.TryGetValue(id, out BrowserTab tab)) {
|
||||
OnTabClicked(tab);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user