当我按下播放按钮时,我想播放上次解锁的 Unity 关卡
when I press the play button I want to play last unlocked level Unity
当我打开我的游戏时,我想按下播放按钮,然后玩我在关闭游戏之前玩过的最后一关。
无论何时加载关卡,您都可以使用 SceneManager 的 PlayerPrefs to save the name of that scene. Upon loading the game the next time, you can use the LoadScene 函数来加载我们存储在 PlayerPrefs 中的名称的场景。
当我打开我的游戏时,我想按下播放按钮,然后玩我在关闭游戏之前玩过的最后一关。
无论何时加载关卡,您都可以使用 SceneManager 的 PlayerPrefs to save the name of that scene. Upon loading the game the next time, you can use the LoadScene 函数来加载我们存储在 PlayerPrefs 中的名称的场景。