Verified Commit 409b4e55 authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Adding UI to built Player.

parent 6476d56c
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement;
using SimpleJSON; using SimpleJSON;
using System.IO; using System.IO;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
namespace dlu namespace dlu
{ {
...@@ -45,6 +45,10 @@ public class SceneController : MonoBehaviour ...@@ -45,6 +45,10 @@ public class SceneController : MonoBehaviour
{ {
semanticBehaviours = FindSemanticLabels(); semanticBehaviours = FindSemanticLabels();
} }
if (!Application.isEditor)
{
SceneManager.LoadScene("UI", LoadSceneMode.Additive);
}
StartCoroutine(EvaluateInstruction()); StartCoroutine(EvaluateInstruction());
} }
......
...@@ -4,5 +4,11 @@ ...@@ -4,5 +4,11 @@
EditorBuildSettings: EditorBuildSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 2 serializedVersion: 2
m_Scenes: [] m_Scenes:
- enabled: 1
path: Assets/DLU/Scenes/Kitchen.unity
guid: 9fc0d4010bbf28b4594072e72b8655ab
- enabled: 1
path: Assets/DLU/Scenes/UI.unity
guid: 9b74fb516dd6645ba8763107f4afdc9f
m_configObjects: {} m_configObjects: {}
...@@ -35,6 +35,10 @@ GraphicsSettings: ...@@ -35,6 +35,10 @@ GraphicsSettings:
- {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16002, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: [] m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0} type: 0}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment