Created
October 24, 2016 05:02
-
-
Save keijiro/e828b55c431b2e5ca8b438ca118034da to your computer and use it in GitHub Desktop.
Load scene out node for Klak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace Klak.Wiring | |
{ | |
[AddComponentMenu("Klak/Wiring/Output/Load Scene")] | |
public class LoadSceneOut : NodeBase | |
{ | |
[SerializeField] string _sceneName; | |
[Inlet] | |
public void Load() | |
{ | |
SceneManager.LoadScene(_sceneName); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment