浏览代码

Fix RpcCommunicator merge.

/release_13_branch
Christopher Goy 4 年前
当前提交
b83b10a0
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 4
      com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs

4
com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs


Dictionary<string, ActionSpec> m_UnsentBrainKeys = new Dictionary<string, ActionSpec>();
#if MLA_SUPPORTED_TRAINING_PLATFORM
/// The Unity to External client.
UnityToExternalProto.UnityToExternalProtoClient m_Client;

UnityInputProto Initialize(int port, UnityOutputProto unityOutput, out UnityInputProto unityInput)
{
#if MLA_SUPPORTED_TRAINING_PLATFORM
m_IsOpen = true;
var channel = new Channel($"localhost:{port}", ChannelCredentials.Insecure);

/// </summary>
public void Dispose()
{
#if MLA_SUPPORTED_TRAINING_PLATFORM
if (!m_IsOpen)
{
return;

/// <param name="unityOutput">The UnityOutput to be sent.</param>
UnityInputProto Exchange(UnityOutputProto unityOutput)
{
#if MLA_SUPPORTED_TRAINING_PLATFORM
if (!m_IsOpen)
{
return null;

正在加载...
取消
保存