| | |
| | | /// sceneUI |
| | | /// </summary> |
| | | public SceneUI sceneUI; |
| | | |
| | | /// <summary> |
| | | /// 当前场景本身,添加场景时使用 |
| | | /// </summary> |
| | | public SceneUI currentSceneUI; |
| | | |
| | | #endregion |
| | | |
| | |
| | | for (int i = 0; i < sceneList.Count; i++) |
| | | { |
| | | var scene = sceneList[i]; |
| | | if (currentSceneUI?.Id == scene.Id) |
| | | { |
| | | continue; |
| | | } |
| | | if (beforeSceneTargetDeviceUIs.Find((obj) => obj.SceneUI.Id == scene.Id) != null) |
| | | { |
| | | continue; |
| | |
| | | sceneRowLayout.Init(); |
| | | sceneRowLayout.SetTitle(scene.Name); |
| | | sceneRowLayout.ClickButton.Tag = scene; |
| | | if(sceneUI==null) |
| | | if (sceneUI == null) |
| | | { |
| | | if (i == 0) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | if(sceneUI.Id==scene.Id) |
| | | if (sceneUI.Id == scene.Id) |
| | | { |
| | | tempSceneRow = sceneRowLayout; |
| | | sceneUI = scene; |