Ejemplo n.º 1
0
Archivo: Main.cs Proyecto: WeeirJoe/Joe
 public bool SplashScreenHidden = false;//开屏splash图是否隐藏.隐藏后其他界面才能开始更新
 void OnApplicationQuit()
 {
     //释放日志占用
     Log.Uninit();
     TcpClientProxy.Ins.Exit();
     FtpLog.Uninit();
 }
Ejemplo n.º 2
0
 public void OnApplicationQuit()
 {
     ClientProxy.Exit();
     Log.Uninit();
     FtpLog.Uninit();
     GameData.SaveState();
     GameData.SaveCache();
 }
Ejemplo n.º 3
0
 public bool SplashScreenHidden = false;//开屏splash图是否隐藏.隐藏后其他界面才能开始更新
 void OnApplicationQuit()
 {
     //主线程阻塞到下载线程结束.
     HttpManager.Instance.Quit();
     //释放日志占用
     Log.Uninit();
     TcpClientProxy.Exit();
     FtpLog.Uninit();
     UpdateHelper.SaveCache();
 }
Ejemplo n.º 4
0
 void Init()
 {
     Version.text = string.Format("游戏:{0}_流星:{1}", Main.Ins.AppInfo.AppVersion(), Main.Ins.AppInfo.MeteorVersion);
     SinglePlayerMode.onClick.AddListener(() =>
     {
         subMenuOpen = !subMenuOpen;
         SubMenu.SetActive(subMenuOpen);
     });
     //单机关卡-官方剧情
     SinglePlayer.onClick.AddListener(() =>
     {
         OnSinglePlayer();
     });
     DlcManager.onClick.AddListener(() => { OnDlcManager(); });
     DlcLevel.onClick.AddListener(() =>
     {
         OnDlcWnd();
     });
     //教学关卡-教导使用招式方式
     TeachingLevel.onClick.AddListener(() =>
     {
         OnTeachingLevel();
     });
     //创建房间-各种单机玩法
     CreateBattle.onClick.AddListener(() =>
     {
         OnCreateRoom();
     });
     //多人游戏-联机
     MultiplePlayer.onClick.AddListener(() =>
     {
         OnlineGame();
     });
     //设置面板
     PlayerSetting.onClick.AddListener(() =>
     {
         OnSetting();
     });
     Replay.onClick.AddListener(() =>
     {
         OnReplay();
     });
     Leave.onClick.AddListener(() =>
     {
         Application.Quit();
     });
     //if (GameStateMgr.Ins.gameStatus.CheatEnable)
     //{
     //    UploadLog.gameObject.SetActive(true);
     //}
     UploadLog.onClick.AddListener(() => { FtpLog.UploadStart(); });
     TcpClientProxy.Ins.Exit();
 }
Ejemplo n.º 5
0
 void Init()
 {
     Version.text = Main.Ins.AppInfo.MeteorVersion;
     SinglePlayerMode.onClick.AddListener(() =>
     {
         subMenuOpen = !subMenuOpen;
         SubMenu.SetActive(subMenuOpen);
     });
     //单机关卡-官方剧情
     SinglePlayer.onClick.AddListener(() =>
     {
         OnSinglePlayer();
     });
     DlcLevel.onClick.AddListener(() =>
     {
         OnDlcWnd();
     });
     //教学关卡-教导使用招式方式
     TeachingLevel.onClick.AddListener(() =>
     {
         OnTeachingLevel();
     });
     //创建房间-各种单机玩法
     CreateBattle.onClick.AddListener(() =>
     {
         OnCreateRoom();
     });
     //多人游戏-联机
     MultiplePlayer.onClick.AddListener(() =>
     {
         OnlineGame();
     });
     //设置面板
     PlayerSetting.onClick.AddListener(() =>
     {
         OnSetting();
     });
     Replay.onClick.AddListener(() =>
     {
         OnReplay();
     });
     EnterQueue.onClick.AddListener(() =>
     {
         OnEnterQueue();
     });
     if (Main.Ins.GameStateMgr.gameStatus.GodLike)
     {
         UploadLog.gameObject.SetActive(true);
     }
     UploadLog.onClick.AddListener(() => { FtpLog.UploadStart(); });
     TcpClientProxy.Exit();
 }
Ejemplo n.º 6
0
 void Init()
 {
     Control("Version").GetComponent <Text>().text = Global.MeteorVersion;
     Control("SinglePlayer").GetComponent <Button>().onClick.AddListener(() => {
         OnSinglePlayer();
     });
     Control("MultiplePlayer").GetComponent <Button>().onClick.AddListener(() => {
         OnlineGame();
     });
     Control("PlayerSetting").GetComponent <Button>().onClick.AddListener(() => {
         OnSetting();
     });
     Control("QuitGame").GetComponent <Button>().onClick.AddListener(() => {
         Application.Quit();
     });
     Control("UploadLog").GetComponent <Button>().onClick.AddListener(() => { FtpLog.UploadStart(); });
     Global.timeScale = 1;
     //Cursor.SetCursor(Resources.Load<Texture2D>("mCursor"), new Vector2(0, 0), CursorMode.Auto);
     //Cursor.visible = true;
 }