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(); }
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(); }
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; }