refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
|
||||
public override int Priority { get { return -50; } }
|
||||
|
||||
static readonly Dictionary<string, int> _rulesetTabs = new Dictionary<string, int>();
|
||||
static readonly Dictionary<string, int> _rulesetTabs = new();
|
||||
|
||||
public override bool CanInvoke(Uri uri, IChartDetail resource) {
|
||||
return true;
|
||||
@@ -20,15 +20,13 @@ namespace Cryville.Crtr.Browsing.Actions {
|
||||
}
|
||||
|
||||
public static bool HasTab(string ruleset) {
|
||||
int tabId;
|
||||
var master = ResourceBrowserMaster.Instance;
|
||||
if (master == null) return false;
|
||||
return _rulesetTabs.TryGetValue(ruleset, out tabId) && master.HasTab(tabId);
|
||||
return _rulesetTabs.TryGetValue(ruleset, out int tabId) && master.HasTab(tabId);
|
||||
}
|
||||
public static void Invoke(string ruleset, Action<RulesetConfig> overrides = null) {
|
||||
var master = ResourceBrowserMaster.Instance;
|
||||
int tabId;
|
||||
if (_rulesetTabs.TryGetValue(ruleset, out tabId) && master.TryOpenTab(tabId))
|
||||
if (_rulesetTabs.TryGetValue(ruleset, out int tabId) && master.TryOpenTab(tabId))
|
||||
return;
|
||||
var browser = Object.Instantiate(master.m_configBrowserPrefab).GetComponent<RulesetConfigBrowser>();
|
||||
try {
|
||||
|
Reference in New Issue
Block a user