protected void OnDestroy()
 {
     if (m_Event == UnityEvent.OnDestroy)
     {
         SignalManager.Send(this, m_Event, m_To);
     }
 }
 protected void OnDisable()
 {
     if (m_Event == UnityEvent.OnDisable)
     {
         SignalManager.Send(this, m_Event, m_To);
     }
 }
 protected void Start()
 {
     if (m_Event == UnityEvent.Start)
     {
         SignalManager.Send(this, m_Event, m_To);
     }
 }
 protected void Awake()
 {
     if (m_Event == UnityEvent.Awake)
     {
         SignalManager.Send(this, m_Event, m_To);
     }
 }
 private void OnSignalReceived(Component sender, object data)
 {
     SignalManager.Send(sender, m_SendSignal, data, m_To);
 }
Exemple #6
0
 private void SendSignal(Component sender)
 {
     SignalManager.Send(sender, m_Send, null, m_To);
 }
        private void Send()
        {
            Component data = m_OptionalDataComponent ? m_OptionalDataComponent : EventComponent;

            SignalManager.Send(this, data, m_Direction);
        }