private void RemoveStim(Stim s) { foreach (Sense sense in senses) { sense.RemoveStim(s); } foreach (StimEvent ev in s.events) { events.Remove(ev); if (OnRemoveEvent != null && !events.Contains(ev)) { OnRemoveEvent(ev); } } }
private void ReceiveStim(Stim s) { foreach (Sense sense in senses) { sense.ReceiveStim(s); } foreach (StimEvent ev in s.events) { if (!events.Contains(ev)) { events.Add(ev); if (OnReceiceEvent != null) { OnReceiceEvent(ev); } } else { events.Add(ev); } } }
public abstract void RemoveStim(Stim stim);
public abstract void ReceiveStim(Stim stim);