Steps to reproduce:
- Create a new Project with the Multiplayer Tools and Netcode for Entities Packages installed
- In any Scene quickly enter and exit Play Mode up to 10 times
Actual results: Error "Destroy may not be called from edit mode! Use DestroyImmediate instead. Destroying an object in edit mode destroys it permanently" is logged
Expected results: Error is not logged, The RuntimeUpdater helper object should be torn down with an edit-mode-safe call (DestroyImmediate) so it does not log when the exit completes after returning to edit mode.
Reproducible with versions: 2.1.0, 2.2.9 (6000.0.0f1, 6000.0.80f1, 6000.3.18f1, 6000.5.6f1, 6000.6.0b6, 6000.7.0a3)
Tested on (OS): Windows 11