private void onPendingChanged() { if (_workspace.PendingEntry != null) { setColor(_appColors.Get(AppColors.Type.Highlighted)); } else { setColor(_appColors.Get(AppColors.Type.InteractionElementBackground)); } }
protected virtual void Start() { _workspace = FindObjectOfType <Workspace>(); _appColors = FindObjectOfType <AppColors>(); setColor(_appColors.Get(AppColors.Type.InteractionElementBackground)); _iconObject.SetActive(_workspace.Count == 0); _workspace.OnPendingEntryChanged += onPendingChanged; _workspace.OnCountChanged += onCountChanged; }