From a77c9874e74e8d7e32258776bbcda3703fbd8461 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 20 Dec 2020 22:00:40 +0100 Subject: [PATCH] update the documentation (which has been outdated for a while apparently, oops) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2da8eef..56f35ac 100644 --- a/README.md +++ b/README.md @@ -31,11 +31,11 @@ To create a coroutine, simply create a method with the return type `IEnumerator< ```cs private static IEnumerator WaitSeconds() { Console.WriteLine("First thing " + DateTime.Now); - yield return new WaitSeconds(1); + yield return new Wait(1); Console.WriteLine("After 1 second " + DateTime.Now); - yield return new WaitSeconds(5); + yield return new Wait(5); Console.WriteLine("After 5 seconds " + DateTime.Now); - yield return new WaitSeconds(10); + yield return new Wait(10); Console.WriteLine("After 10 seconds " + DateTime.Now); } ``` @@ -55,7 +55,7 @@ private static readonly Event TestEvent = new Event(); Waiting for an event in a coroutine works as follows: ```cs private static IEnumerator WaitForTestEvent() { - yield return new WaitEvent(TestEvent); + yield return new Wait(TestEvent); Console.WriteLine("Test event received"); } ```