void OnShowBlock(Client peer, C_Scene_ShowBlock_0x0307 msg) { Singleton._log.Info("C_Scene_ShowBlock_0x0307" + ", client=" + peer._accountName); var rs = Singleton._sceneManager.ShowBlock(peer, Singleton._sceneManager.GetSceneID(peer._accountName), msg._index); //Singleton._log.Info("S_Scene_ShowBlock_0x0307" + ", client=" + peer._accountName); //Send(peer, new S_Scene_ShowBlock_0x0307 //{ // _index = rs, _isShow = rs == 0 //}); }
public void ShowBlock(int index, Action <int, bool> action) { Debug.Log("[C_Scene_ShowBlock_0x0307]"); _onShowBlock = action; var data = new C_Scene_ShowBlock_0x0307(); data._index = index; //Singleton._serverCallback.AddCallback<S_Scene_ShowBlock_0x0307>(OnShowBlock); Singleton._messageManager.Send(data); }