Exemplo n.º 1
0
        public void Execute(string client, JSONNode args)
        {
            var name = args["scene"].Value;

            var menu = Object.FindObjectOfType <MenuManager>();

            if (menu == null)
            {
                Reset.Run();
                ApiManager.Instance.StartCoroutine(LoadMenuAsync(client, name));
            }
            else
            {
                DoLoad(client, name);
            }
        }
        public void Execute(JSONNode args)
        {
            var name = args["scene"].Value;

            RosBridgeConnector.canConnect = false;
            var menu = Object.FindObjectOfType <MenuManager>();

            if (menu == null)
            {
                Reset.Run();
                ApiManager.Instance.StartCoroutine(LoadMenuAsync(name));
            }
            else
            {
                ApiManager.Instance.StartCoroutine(DoLoad(name));
            }
        }
Exemplo n.º 3
0
        public void Execute(string client, JSONNode args)
        {
            var name = args["scene"].Value;

            var menu = Object.FindObjectOfType <MenuManager>();

            if (menu == null)
            {
                Reset.Run();

                var loader = SceneManager.LoadSceneAsync("Menu");
                loader.completed += op => DoLoad(client, name);
            }
            else
            {
                DoLoad(client, name);
            }
        }