Destroying Saveable Objects
// Wrong: Will respawn on load, destruction will not persist.
Destroy(gameObject);
// Correct: Persists destruction
// ( Option #1 )
GetComponent<Saveable>().DestroySelf();
// or ( Option #2 )
SaveManager.DestroyPersistent(gameObject);Last updated