Skip to content

Commit

Permalink
Fixed a catastrophic mistake in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Clpsplug committed Sep 16, 2020
1 parent c43c789 commit 94e0ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
{

}
Expand All @@ -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() {
Expand Down

0 comments on commit 94e0ab9

Please sign in to comment.