would need to add these https://docs.unity3d.com/Manual/PlatformDependentCompilation.html to replace threading with Tasks