Unity 机器学习代理工具包 (ML-Agents) 是一个开源项目,它使游戏和模拟能够作为训练智能代理的环境。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
HH 7eac2cee fix mouse look choppiness 4 年前
..
.sample.json fix mouse look choppiness 4 年前
Player.prefab fix mouse look choppiness 4 年前
Player.prefab.meta fix mouse look choppiness 4 年前
README.md fix mouse look choppiness 4 年前
README.md.meta fix mouse look choppiness 4 年前
SimpleMultiplayerControls.inputactions fix mouse look choppiness 4 年前
SimpleMultiplayerControls.inputactions.meta fix mouse look choppiness 4 年前
SimpleMultiplayerDemo.unity fix mouse look choppiness 4 年前
SimpleMultiplayerDemo.unity.meta fix mouse look choppiness 4 年前
SimpleMultiplayerPlayer.cs fix mouse look choppiness 4 年前
SimpleMultiplayerPlayer.cs.meta fix mouse look choppiness 4 年前

README.md

Simple Multiplayer Demo

This demo shows a simple local multiplayer setup. Players can join by pressing buttons on the supported devices. As players join, the screen is subdivided in split-screen fashion.

Joining is handled by the PlayerManager GameObject in the scene which has the PlayerInputManager component added to it. The component references Player.prefab which is instantiated for each player that joins the game.

The prefab contains a GameObject that has a PlayerInput component added to it. The component references the actions available to each player which, by means of the control schemes defined in the asset, also determine the devices (and combinations of devices) supported by the game.

The actions available to each player are intentionally kept simple for this demonstration in order to not add irrelevant details. The only action available to players is Teleport which players can trigger through a button on their device. When trigger, they will be teleported to a random position within the game area. This serves to demonstrate that player inputs are indeed separate.

Note that each PlayerInput also references a Camera which is specific to each player. This is used by PlayerInputManager to configure the split-screen setup.