private void Awake() { Instance = this; positions = new NativeArray <float3>(_bufferSize, Allocator.Persistent); separations = new NativeArray <float3>(_bufferSize, Allocator.Persistent); _stopwatch = new Stopwatch(); //The Mathematics.Random's seed cannot be left empty. uint seed = (uint)UnityEngine.Random.Range(0, int.MaxValue); _random = new Random(seed); }
private void Awake() { Instance = this; }