Projekt

Obecné

Profil

Stáhnout (610 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
using UnityEngine;
2
using UnityEngine.SceneManagement;
3

    
4
namespace DeltaRobotVr
5
{
6
    
7
    /// <summary>
8
    /// Global script for the main scene.
9
    /// </summary>
10
    public class MainScript : MonoBehaviour
11
    {
12
        private static readonly string DefaultScene = "BasicRoomScene";
13
        private void Start()
14
        {
15
            var sceneName = ConfigurationProvider.Instance.SceneName;
16
            SceneManager.LoadScene(sceneName, LoadSceneMode.Additive);
17
            Client.Instance.Start();
18
        }
19

    
20
        private void OnDestroy()
21
        {
22
            Client.Instance.Stop();
23
        }
24
    }
25
}
(6-6/13)