add: deployment
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class DeployController : MonoBehaviour
|
||||
{
|
||||
public void Deploy(string sceneName) {
|
||||
LevelInfo level = GameController.i.GetLevel(sceneName);
|
||||
SceneManager.LoadScene(level.scene.name);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user