按键绑定和重置以及加载功能
This commit is contained in:
@@ -129,7 +129,7 @@ namespace NBC
|
||||
_uiArray.Add(uiName, panel);
|
||||
}
|
||||
|
||||
public IUIPanel GetUI<T>()
|
||||
public T GetUI<T>() where T : class
|
||||
{
|
||||
IUIPanel wind = null;
|
||||
Type type = typeof(T);
|
||||
@@ -141,7 +141,7 @@ namespace NBC
|
||||
break;
|
||||
}
|
||||
|
||||
return wind;
|
||||
return wind as T;
|
||||
}
|
||||
|
||||
public IUIPanel GetUI(Type type)
|
||||
|
||||
Reference in New Issue
Block a user