refactor(Facility): 使用继承让所有机关都拥有了独自的 可交互 可编辑 可连接设定。大面积重构
This commit is contained in:
@@ -24,7 +24,7 @@ namespace UI
|
||||
|
||||
private void OnClickButton()
|
||||
{
|
||||
_component.IsComponentActive = !_component.IsComponentActive;
|
||||
_component.IsOpenInEditor = !_component.IsOpenInEditor;
|
||||
RefreshUI();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace UI
|
||||
if (_component != null)
|
||||
{
|
||||
componentName.text = _component.ComponentName;
|
||||
componentState.text = _component.IsComponentActive ? "Active" : "Inactive";
|
||||
componentState.text = _component.IsOpenInEditor ? "Active" : "Inactive";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user