[UnityTest] public IEnumerator CustomObjectWorkerExample() { CustomObjectWorkerClass.Payload payload = new CustomObjectWorkerClass.Payload { A = 5, B = 6 }; yield return(Fiber.Start().CustomObjectWorker(payload).AsCoroutine()); Assert.AreEqual(16, payload.A + payload.B); }
public static Fiber CustomObjectWorker(this Fiber fiber, CustomObjectWorkerClass.Payload payload) => CustomObjectWorkerClass.Instance.Load(fiber, payload);