void Awake() { if (Instance) { Destroy(this); return; } Instance = this; objectsToUpdate = new List <FoliageInfo>(); workerThreadClass = new ScaleUpdateWorker(updateInterval, Time.time); }
void Awake () { if (Instance) { Destroy(this); return; } Instance = this; objectsToUpdate = new List<FoliageInfo>(); workerThreadClass = new ScaleUpdateWorker (updateInterval, Time.time); }