// 单色模式 编辑按钮 public void OnBtnEditSingleColorClick() { ColorEditWindow colorEditWindow = Instantiate(editColorWindow, transform).GetComponent <ColorEditWindow>(); colorEditWindow.setCurrentColor(imgSingleColor.color); colorEditWindow.OnWindowClose += OnReturnEditSingleColor; }
public void OnBtnEditColor() { if (currentItemId == -1) { return; } List <ImageItem> itemList = colorGroupContent.GetComponentsInChildren <ImageItem>().ToList(); ColorEditWindow colorEditWindow = Instantiate(editColorWindow, transform).GetComponent <ColorEditWindow>(); colorEditWindow.setCurrentColor(itemList[currentItemId].currentColor); colorEditWindow.OnWindowClose += OnReturnEditingColorItem; }