예제 #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());
        }
예제 #2
0
        protected void BeginIntervalSpawnFilter(SpawnAtInterval data)
        {
            var GroupSpawnAtInterval = SpawnAtIntervalManager[data.EntityId];

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