public static void NextJob() { Debug.Log($"Call NextJob: {jobId}"); // cleanup last job if exists if (jobId >= 0) { CleanUp(); } jobId++; // prepare and run next job if exists if (jobId < jobs.Length) { Debug.Log($"Running job {CurrentJob}"); PrepareJob(); Debug.Log(loadedAsset); Debug.Log(gameAsset); loadedAsset.WriteToGame(gameAsset); } else { Debug.Log("All completed!"); } }