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);
     }
 }
 protected void OnDestroy()
 {
     SignalManager.Unregister(this);
 }
 protected virtual void Start()
 {
     SignalManager.Register(this);
 }
Esempio n. 7
0
 protected void Start()
 {
     SignalManager.Register(this, m_ReceiveSignal, OnSignalReceived, m_From);
 }
Esempio n. 8
0
 private void OnSignalReceived(Component sender, object data)
 {
     SignalManager.Send(sender, m_SendSignal, data, m_To);
 }
 private void OnDestroy()
 {
     SignalManager.UnregisterAll(this);
 }
 private void Start()
 {
     SignalManager.Register(this, EnableSignal, OnEnableSignal);
     SignalManager.Register(this, DisableSignal, OnDisabelSignal);
     Target = Target ? Target : gameObject;
 }
Esempio n. 11
0
 private void Start()
 {
     SignalManager.Register(this, EnableSignal, OnEnableSignal);
     SignalManager.Register(this, DisableSignal, OnDisableSignal);
 }
Esempio n. 12
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);
        }
Esempio n. 14
0
 protected void Start()
 {
     SignalManager.Register(this, m_Signal, OnOverrideTextureSignal);
     XDebug.AssertRequiresComponent(m_Renderer, this);
     XDebug.Assert(m_MaterialWithTexture, this, "Material reference missing.");
 }