public void Init() { #region Event Registering InteractiveObjectEventsManagerSingleton.Get().RegisterOnAllInteractiveObjectCreatedEventListener(OnInteractiveObjectCreated); #endregion this.InitializeAllInteractiveObjectsInitializer(); }
public void Init() { #region Event Registering InteractiveObjectEventsManagerSingleton.Get().RegisterOnInteractiveObjectCreatedEventListener(OnInteractiveObjectCreated); InteractiveObjectEventsManagerSingleton.Get().RegisterOnInteractiveObjectDestroyedEventListener(OnInteractiveObjectDestroyed); #endregion var InteractiveObjectInitializers = GameObject.FindObjectsOfType <InteractiveObjectInitializer>(); if (InteractiveObjectInitializers != null) { for (var InteractiveObjectInitializerIndex = 0; InteractiveObjectInitializerIndex < InteractiveObjectInitializers.Length; InteractiveObjectInitializerIndex++) { InteractiveObjectInitializers[InteractiveObjectInitializerIndex].Init(); } } }