//清档 public void ClearProgress() { f_isPlaying = false; f_playLevelIndex = -1; f_gameProgressIndex = -1; FBSaver.SetProgress(-1); }
public void StoptLevel(bool isWin) { if (isWin && PlayLevelIndex > GameProgressIndex) { //更新进度 f_gameProgressIndex = PlayLevelIndex; //保存进度 FBSaver.SetProgress(PlayLevelIndex); } f_isPlaying = false; }