public void StartTracking(TriggeredSpawnerV2 sourceSpawner, TriggeredSpawner.EventType eType, string customEventName, TriggeredWaveMetaData waveMeta) { _sourceSpawner = sourceSpawner; _waveEventType = eType; _customEventName = customEventName; _waveMeta = waveMeta; }
// 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; }