Example #1
0
 void UnregisterEventListeners( )
 {
     if (null != event_UnityEngine_GameObject_Instance_0)
     {
         {
             uScript_Update component = event_UnityEngine_GameObject_Instance_0.GetComponent <uScript_Update>();
             if (null != component)
             {
                 component.OnUpdate      -= Instance_OnUpdate_0;
                 component.OnLateUpdate  -= Instance_OnLateUpdate_0;
                 component.OnFixedUpdate -= Instance_OnFixedUpdate_0;
             }
         }
     }
     if (null != event_UnityEngine_GameObject_Instance_3)
     {
         {
             uScript_Trigger component = event_UnityEngine_GameObject_Instance_3.GetComponent <uScript_Trigger>();
             if (null != component)
             {
                 component.OnEnterTrigger     -= Instance_OnEnterTrigger_3;
                 component.OnExitTrigger      -= Instance_OnExitTrigger_3;
                 component.WhileInsideTrigger -= Instance_WhileInsideTrigger_3;
             }
         }
     }
 }
Example #2
0
 void SyncEventListeners( )
 {
     if (null == event_UnityEngine_GameObject_Instance_0 || false == m_RegisteredForEvents)
     {
         event_UnityEngine_GameObject_Instance_0 = uScript_MasterComponent.LatestMaster;
         if (null != event_UnityEngine_GameObject_Instance_0)
         {
             {
                 uScript_Update component = event_UnityEngine_GameObject_Instance_0.GetComponent <uScript_Update>();
                 if (null == component)
                 {
                     component = event_UnityEngine_GameObject_Instance_0.AddComponent <uScript_Update>();
                 }
                 if (null != component)
                 {
                     component.OnUpdate      += Instance_OnUpdate_0;
                     component.OnLateUpdate  += Instance_OnLateUpdate_0;
                     component.OnFixedUpdate += Instance_OnFixedUpdate_0;
                 }
             }
         }
     }
     if (null == event_UnityEngine_GameObject_Instance_3 || false == m_RegisteredForEvents)
     {
         event_UnityEngine_GameObject_Instance_3 = GameObject.Find("NewSlowZone") as UnityEngine.GameObject;
         if (null != event_UnityEngine_GameObject_Instance_3)
         {
             {
                 uScript_Trigger component = event_UnityEngine_GameObject_Instance_3.GetComponent <uScript_Trigger>();
                 if (null == component)
                 {
                     component = event_UnityEngine_GameObject_Instance_3.AddComponent <uScript_Trigger>();
                 }
                 if (null != component)
                 {
                     component.OnEnterTrigger     += Instance_OnEnterTrigger_3;
                     component.OnExitTrigger      += Instance_OnExitTrigger_3;
                     component.WhileInsideTrigger += Instance_WhileInsideTrigger_3;
                 }
             }
         }
     }
 }
 void Instance_WhileInsideTrigger_54(object o, uScript_Trigger.TriggerEventArgs e)
 {
    //fill globals
    event_UnityEngine_GameObject_GameObject_54 = e.GameObject;
    //relay event to nodes
    Relay_WhileInsideTrigger_54( );
 }
 void Instance_WhileInsideTrigger_0(object o, uScript_Trigger.TriggerEventArgs e)
 {
    //reset event call
    //if it ever goes above MaxRelayCallCount before being reset
    //then we assume it is stuck in an infinite loop
    if ( relayCallCount < MaxRelayCallCount ) relayCallCount = 0;
    
    //fill globals
    event_UnityEngine_GameObject_GameObject_0 = e.GameObject;
    //relay event to nodes
    Relay_WhileInsideTrigger_0( );
 }
 void Instance_OnExitTrigger_35(object o, uScript_Trigger.TriggerEventArgs e)
 {
    //fill globals
    event_UnityEngine_GameObject_GameObject_35 = e.GameObject;
    //relay event to nodes
    Relay_OnExitTrigger_35( );
 }