public bool Subscribe(AgentSubscriber sub)
 {
     // Subscribe to know when this agent does an action
     if (!m_Subscribers.Contains(sub))
     {
         m_Subscribers.Add(sub);
         return(true);
     }
     return(false);
 }
 public bool Unsubscribe(AgentSubscriber sub)
 {
     // Stop listening for when this agent does things
     if (m_Subscribers.Contains(sub))
     {
         m_Subscribers.Remove(sub);
         return(true);
     }
     return(false);
 }
 void Awake()
 {
     // Create the subscriber to listen for agent actions
     m_Subscriber = new AgentSubscriber();
 }