jobs can be updated by anyone

This commit is contained in:
in0finite 2022-01-23 06:15:01 +01:00
parent 75ac2ee166
commit 86ed0369a7

View file

@ -97,7 +97,19 @@ namespace SanAndreasUnity.Behaviours
}
}
void Update () {
void Update()
{
this.UpdateJobsInternal();
}
public void UpdateJobs()
{
ThreadHelper.ThrowIfNotOnMainThread();
this.UpdateJobsInternal();
}
void UpdateJobsInternal () {
// get all processed jobs