Skip to content
Snippets Groups Projects
Commit a3ae1114 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Update README.md

parent 8c33d3a8
Branches master
No related tags found
No related merge requests found
# SceneSwitch
Allows you to switch the active Scene when a Triggervolume is entered, exited or when you stay in a trigger volume for long enough
Allows you to switch the active Scene when a Trigger-Collider is entered, exited or when you stay in a trigger volume for a certain time.
Use as follows:
1. Copy the Script `Assets/SceneSwitch.cs` and `Assets/Data.cs` to your assets folder (unless you already have one e.g. from the SoundManager)
2. Drag `SceneSwitch.cs` onto the Trigger Volume that should make the transition possible
3. Enter a Scene Name (for the target Scene)
4. Select a mode (On Enter, On Exit, Countdown)
5. Drag `Data.cs` onto an empty Gameobject called "Data"
5. Drag `Data.cs` onto an Empty Gameobject called "Data" and insert the name of the current scene in the field `Current Scene` on the Data component
Data.cs is used to transfer Data between scenes
\ No newline at end of file
Data.cs is used to transfer Data between scenes and to remember which scenes have already been visited
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment