|
|
|
|
|
|
} |
|
|
|
case CommandProto.Reset: |
|
|
|
{ |
|
|
|
foreach (var brainName in m_ActionCallbacks.Keys) |
|
|
|
{ |
|
|
|
m_ActionCallbacks[brainName].Clear(); |
|
|
|
} |
|
|
|
ResetCommandReceived?.Invoke(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
agentActionDict[agentId] = agentAction; |
|
|
|
m_ActionCallbacks[brainName][i].Callback.Invoke(agentAction); |
|
|
|
} |
|
|
|
} |
|
|
|
foreach (var brainName in m_ActionCallbacks.Keys) |
|
|
|
{ |
|
|
|
m_ActionCallbacks[brainName].Clear(); |
|
|
|
} |
|
|
|
} |
|
|
|