Beispiel #1
0
        public void Init()
        {
            #region Event Registering

            InteractiveObjectEventsManagerSingleton.Get().RegisterOnAllInteractiveObjectCreatedEventListener(OnInteractiveObjectCreated);

            #endregion

            this.InitializeAllInteractiveObjectsInitializer();
        }
Beispiel #2
0
        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();
                }
            }
        }