public override void CompTick()
        {
            if (!setup)
            {
                performSetup();
            }

            compComponentsPositionTracker.CompTick();
            compHiddenable.CompTick();
            compHideFromPlayer.CompTick();

            if (compViewBlockerWatcher != null)
            {
                compViewBlockerWatcher.CompTick();
            }
            if (compFieldOfViewWatcher != null)
            {
                compFieldOfViewWatcher.CompTick();
            }

#if Profile
            if (++ticks >= 5000)
            {
                UnityEngine.Application.Quit();
            }
#endif
        }
Пример #2
0
        public override void CompTick()
        {
            base.CompTick();

            if (!setup)
            {
                performSetup();
            }

            compComponentsPositionTracker.CompTick();
            compHiddenable.CompTick();
            compHideFromPlayer.CompTick();

            if (compViewBlockerWatcher != null)
            {
                compViewBlockerWatcher.CompTick();
            }
            if (compFieldOfViewWatcher != null)
            {
                compFieldOfViewWatcher.CompTick();
            }
        }