public LeftPanelHud(Transform content, EventService eventService, LevelActionExecutor executor, Action onDelete, Action onSave, Action onBack, Action onClone) { go = content.gameObject; this.eventService = eventService; this.executor = executor; state = LeftPanelViewState.Hidden; setData(onDelete, onSave, onBack, onClone); }
void changeStateAndUpdateView() { state = state == LeftPanelViewState.Hidden ? LeftPanelViewState.Shown : LeftPanelViewState.Hidden; updateView(); }