Example #1
0
 void OnDisable()
 {
     for (int i = 0; i < OnDisableEvents.Count; ++i)
     {
         HDRSystem.LoadBank(OnDisableEvents[i]);
     }
     for (int i = 0; i < OnDisableUnloadEvents.Count; ++i)
     {
         HDRSystem.UnloadBank(OnDisableUnloadEvents[i]);
     }
 }
Example #2
0
 void OnDestroy()
 {
     for (int i = 0; i < OnDestroyEvents.Count; ++i)
     {
         HDRSystem.LoadBank(OnDestroyEvents[i]);
     }
     for (int i = 0; i < OnDestroyUnloadEvents.Count; ++i)
     {
         HDRSystem.UnloadBank(OnDestroyUnloadEvents[i]);
     }
 }
Example #3
0
 void Start()
 {
     for (int i = 0; i < OnStartEvents.Count; ++i)
     {
         HDRSystem.LoadBank(OnStartEvents[i]);
     }
     for (int i = 0; i < OnStartUnloadEvents.Count; ++i)
     {
         HDRSystem.UnloadBank(OnStartUnloadEvents[i]);
     }
 }