/// <summary> /// 游戏推出 /// </summary> /// <param name="v"></param> public static void Exit(int v) { switch (v) { case 0: Application.Quit(); break; case 1: UIManager.GetUI <UI_Ask>().Use(new UI_Ask_Context() { Message = Writing.Get(200001), Callback = (_yn, _ask) => { if (_yn) { SaveFile(); Exit(0); } _ask.UseDone(); } }); break; default: Application.Quit(); break; } }
private void ReSetText() { text.text = Writing.Get(TextNum); language = Writing.CurrentLanguage; }