From 94e0ab91498ff72a7ee1796275c2224029aed960 Mon Sep 17 00:00:00 2001 From: Collapsed Plug Date: Wed, 16 Sep 2020 19:42:26 +0900 Subject: [PATCH] Fixed a catastrophic mistake in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb1769e..3477866 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Play `Assets/Scenes/SampleScene.unity`. It transitions into `SecondScene.unity` 2. **Copy the following** into a new file. This creates a class which implements `UniSwitcher.Domain.IScene`. ```csharp using UniSwitcher.Domain; - public MyScene: IScene { + public class MyScene: IScene { private readonly string _rawValue; public MyScene(string rawValue) { _rawValue = rawValue; @@ -47,7 +47,7 @@ Play `Assets/Scenes/SampleScene.unity`. It transitions into `SecondScene.unity` 3. **Create a class extending `UniSwitcher.Switcher`,** which also extends `MonoBehaviour`. ```csharp using UniSwitcher.Switcher; - public Sample: Switcher + public class Sample: Switcher { } @@ -56,7 +56,7 @@ Play `Assets/Scenes/SampleScene.unity`. It transitions into `SecondScene.unity` 4. In this class, you can **call `PerformSceneTransition`.** The most basic usage is to run `ChangeScene(new MyScene("Assets/path/to/scene.unity"))`. ```csharp - public Sample: Switcher + public class Sample: Switcher { // We choose Start() so that you can see the effect immediately private void Start() {