Exemplo n.º 1
0
 private void Awake()
 {
     UpdateScene.Instance      = this;
     this.bgTex.mainTexture    = Resources.Load <Texture2D>("Other/loginBg/ui_pic_denglu");
     this.progress.mainTexture = Resources.Load <Texture2D>("Other/loading/ui_loading_01");
     UIEventListener.Get(this.bgTex.gameObject).onClick = new UIEventListener.VoidDelegate(this.OnBackgroundClicked);
 }
 static int CreateUpdateScene(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         PanelManager obj = (PanelManager)ToLua.CheckObject(L, 1, typeof(PanelManager));
         UpdateScene  o   = obj.CreateUpdateScene();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 3
0
        public async Task PutById()
        {
            var all = await localHueClient.GetScenes();

            var id = all.Data.Last().Id;

            UpdateScene req = new UpdateScene()
            {
            };
            var result = await localHueClient.UpdateScene(id, req);

            Assert.IsNotNull(result);
            Assert.IsFalse(result.HasErrors);

            Assert.IsTrue(result.Data.Count == 1);
            Assert.AreEqual(id, result.Data.First().Rid);
        }
Exemplo n.º 4
0
 public Task <HuePutResponse> UpdateScene(Guid id, UpdateScene data) => HuePutRequest(ResourceIdUrl(SceneUrl, id), data);