Example #1
0
 public void StartTracking(TriggeredSpawnerV2 sourceSpawner, TriggeredSpawner.EventType eType, string customEventName, TriggeredWaveMetaData waveMeta)
 {
     _sourceSpawner   = sourceSpawner;
     _waveEventType   = eType;
     _customEventName = customEventName;
     _waveMeta        = waveMeta;
 }
Example #2
0
        // ReSharper disable once UnusedMember.Local
        private void OnDisable()
        {
            if (_sourceSpawner == null || _waveMeta == null)
            {
                return;
            }

            _sourceSpawner.RemoveItemFromWave(Trans, _waveEventType, _customEventName, _waveMeta);

            _sourceSpawner   = null;
            _waveMeta        = null;
            _customEventName = null;
        }