private void OnDestroy() { AdventureConfig config = AdventureConfig.Get(); if (config != null) { config.RemoveAdventureMissionSetListener(new AdventureConfig.AdventureMissionSet(this.OnMissionSelected)); config.RemoveSubSceneChangeListener(new AdventureConfig.SubSceneChange(this.OnSubsceneChanged)); } }