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]); } }
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]); } }
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]); } }