Пример #1
0
 void Start()
 {
     if (trafPerfManager == null)
     {
         trafPerfManager = TrafPerformanceManager.Instance;
     }
     if (trafInfoManager == null)
     {
         trafInfoManager = TrafInfoManager.Instance;
     }
     //AdminManager.Instance.register(this);
 }
Пример #2
0
    public Queue <string> freeIdPool; //Free user id

    void Start()
    {
        if (trafPerfManager == null)
        {
            trafPerfManager = TrafPerformanceManager.Instance;
        }

        //Debug.Log("Machine MAC Address in Hex String Format: " + GetMACAddress());
        var MACAddress_Int = System.Convert.ToInt64(GetMACAddress(), 16);

        //Debug.Log("Machine MAC Address in Int 32 Format: " + MACAddress_Int);
        random = new System.Random((int)MACAddress_Int);

        freeIdPool = new Queue <string>();
    }