fix: Allow optional button in event report view
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Cryville.EEW.Unity.UI {
|
||||
ReportViewModel _viewModel;
|
||||
|
||||
protected virtual void Start() {
|
||||
m_reportViewButton.onClick.AddListener(OnViewClicked);
|
||||
if (m_reportViewButton != null) m_reportViewButton.onClick.AddListener(OnViewClicked);
|
||||
}
|
||||
void OnViewClicked() {
|
||||
Worker.Instance.SetSelected(_viewModel);
|
||||
|
Reference in New Issue
Block a user