コード例 #1
0
        [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);
        }
コード例 #2
0
 public static Fiber CustomObjectWorker(this Fiber fiber, CustomObjectWorkerClass.Payload payload) =>
 CustomObjectWorkerClass.Instance.Load(fiber, payload);