Пример #1
0
 private void onPendingChanged()
 {
     if (_workspace.PendingEntry != null)
     {
         setColor(_appColors.Get(AppColors.Type.Highlighted));
     }
     else
     {
         setColor(_appColors.Get(AppColors.Type.InteractionElementBackground));
     }
 }
Пример #2
0
        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;
        }