Esempio n. 1
0
        /// <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;
            }
        }
Esempio n. 2
0
 private void ReSetText()
 {
     text.text = Writing.Get(TextNum);
     language  = Writing.CurrentLanguage;
 }