Example #1
0
        public void Remove(WorkspaceEntry entry)
        {
            _entries.Remove(entry);
            Destroy(entry.Base.gameObject);

            OnCountChanged?.Invoke();
            OnEntryRemoved?.Invoke(entry);
        }
Example #2
0
 public void Remove(Entry entry)
 {
     _entries.Remove(entry);
     OnCountChanged?.Invoke();
     OnEntryRemoved?.Invoke(entry);
     entry.OnVisableChanged -= invokeOnVisableCountChanged;
     invokeOnVisableCountChanged();
 }
Example #3
0
 protected override void EntryRemoved(bool evicted, Java.Lang.Object key, Java.Lang.Object oldValue, Java.Lang.Object newValue)
 {
     base.EntryRemoved(evicted, key, oldValue, newValue);
     OnEntryRemoved?.Invoke(this, new EntryRemovedEventArgs <Java.Lang.Object>(key.ToString(), oldValue, evicted));
 }