Ejemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();
            _entityInCurrentCoroutine = 0;
            _activeCoroutines         = new Dictionary <UnityTile, List <int> >();
            _activeIds = new HashSet <ulong>();
            _idPool    = new Dictionary <UnityTile, List <ulong> >();

            if (_defaultStack != null)
            {
                _defaultStack.Initialize();
            }
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();
            _entityInCurrentCoroutine = 0;
            _activeCoroutines         = new Dictionary <UnityTile, List <int> >();

            foreach (var filter in Filters)
            {
                if (filter != null)
                {
                    filter.Initialize();
                }
            }

            if (_defaultStack != null)
            {
                _defaultStack.Initialize();
            }

            foreach (var item in Stacks)
            {
                if (item != null && item.Stack != null)
                {
                    item.Types = item.Type.Split(',');
                    item.Stack.Initialize();
                }
            }
        }