mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update SceneSwitcher.cs
This commit is contained in:
@@ -7,8 +7,7 @@ namespace UnityToolbarExtender
|
|||||||
[InitializeOnLoad]
|
[InitializeOnLoad]
|
||||||
public class SceneSwitchLeftButton
|
public class SceneSwitchLeftButton
|
||||||
{
|
{
|
||||||
private static readonly string SceneName1 = "main";
|
private static readonly string SceneMain = "main";
|
||||||
private static readonly string SceneName2 = "main2";
|
|
||||||
|
|
||||||
static SceneSwitchLeftButton()
|
static SceneSwitchLeftButton()
|
||||||
{
|
{
|
||||||
@@ -32,7 +31,7 @@ namespace UnityToolbarExtender
|
|||||||
new GUIContent("Launcher", EditorGUIUtility.FindTexture("PlayButton"), $"Start Scene Launcher"),
|
new GUIContent("Launcher", EditorGUIUtility.FindTexture("PlayButton"), $"Start Scene Launcher"),
|
||||||
_buttonGuiStyle))
|
_buttonGuiStyle))
|
||||||
{
|
{
|
||||||
SceneHelper.StartScene(SceneName1);
|
SceneHelper.StartScene(SceneMain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user