logo
32
3
WeChat Login

在线游戏示例项目

这是 UOS 官方提供的示例项目,以小游戏 "24 点" 为载体,演示了如何通过集成 UOS Passport、CDN、CRUD Save 等服务,快速实现在线游戏中登录、服务器及玩家管理、资源托管及存档等常用功能。

接入方式

  • 点击前往 UOS 官网,为当前模板项目创建 UOS 应用。应用创建后,平台会自动帮助您启动当前示例项目中所需要的服务,并进行必要的设置。您也可以根据各服务的文档,进行自定义的修改。
  • 在 Unity 编辑器中打开菜单 -> UOS -> Open Launcher,将上述应用的 AppID、AppServiceSecret 和 AppSecret 填入面板中,点击连接。
  • 点击运行项目

Online Game Sample

A sample game provided by UOS (Unity Online Services). It demonstrates how to quickly implement commonly used functions such as login, server and player management, resource hosting, and save data in online games through the integration of UOS Passport, CDN, and CRUD Save services.

Setup

  • Click to go to Unity Online Services to create a UOS Application for the current template project. After creating the application, the platform will automatically help you launch the services required for the current example project and perform the necessary configurations. You can also customize the configurations according to the documentation of each service.
  • Open the menu in editor: UOS -> Open Launcher, and enter the AppID, AppServiceSecret and AppSecret for the above application, and then click 「Link APP」.
  • click to play.

*Please refer to the example code in the Assets/TwentyFour/Scripts/UOSGateway directory.

About

《火拼24》官方教学课程仓库

Language
Markdown59.7%
gitignore28.1%
Others12.2%