Download com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs from ashish2244/ppo-SnowballTarget: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs
- Command line
-
hf download hf://ashish2244/ppo-SnowballTarget/com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs
-
curl -L -o MultiAgentGroupIdCounter.cs https://huggingface.co/ashish2244/ppo-SnowballTarget/resolve/main/com.unity.ml-agents/Runtime/MultiAgentGroupIdCounter.cs
263 Bytes
| using System.Threading; | |
| namespace Unity.MLAgents | |
| { | |
| internal static class MultiAgentGroupIdCounter | |
| { | |
| static int s_Counter; | |
| public static int GetGroupId() | |
| { | |
| return Interlocked.Increment(ref s_Counter); | |
| } | |
| } | |
| } | |