File size: 263 Bytes
05c9ac2
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System.Threading;

namespace Unity.MLAgents
{
    internal static class MultiAgentGroupIdCounter
    {
        static int s_Counter;
        public static int GetGroupId()
        {
            return Interlocked.Increment(ref s_Counter);
        }
    }
}