示例#1
0
        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);
                }
            }
        }
示例#2
0
        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);
                }
            }
        }
示例#3
0
文件: Sense.cs 项目: SandroGX/Scripts
 public abstract void RemoveStim(Stim stim);
示例#4
0
文件: Sense.cs 项目: SandroGX/Scripts
 public abstract void ReceiveStim(Stim stim);