Esempio n. 1
0
        protected virtual void BeginIntervalSpawn(SpawnAtInterval data, SpawnAtInterval group)
        {
            var handler = new BeginIntervalSpawn();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
Esempio n. 2
0
        protected void BeginIntervalSpawnFilter(SpawnAtInterval data)
        {
            var GroupSpawnAtInterval = SpawnAtIntervalManager[data.EntityId];

            if (GroupSpawnAtInterval == null)
            {
                return;
            }
            if (!GroupSpawnAtInterval.Enabled)
            {
                return;
            }
            this.BeginIntervalSpawn(data, GroupSpawnAtInterval);
        }