Пример #1
0
        void Awake()
        {
            Instance = this;

            int iSeed = 10;

            System.Random ro   = new System.Random(10);
            long          tick = DateTime.Now.Ticks;

            _ran = new System.Random((int)(tick & 0xffffffffL) | (int)(tick >> 32));
        }
Пример #2
0
 void OnDestroy()
 {
     Instance = null;
 }