static void Postfix(VRUI.VRUIViewController.DeactivationType deactivationType) { if (deactivationType == VRUI.VRUIViewController.DeactivationType.RemovedFromHierarchy) { Gamemode.ResetGameMode(); } }