/* public OverlayColorData GetColor(Color c, Color additive) * { * OverlayColorData ocd = new OverlayColorData(3); * ocd.channelMask[0] = c; * ocd.channelAdditiveMask[0] = additive; * return ocd; * }*/ private void AddRemoverButton() { GameObject go = objectPooler.GetPooledObject(ColorButtonPrefab); ColorPickerButton colorPickerButton = go.GetComponent <ColorPickerButton>(); colorPickerButton.Configure(systemGameManager); colorPickerButton.SetupRemover(Avatar, ColorName, Color.white); go.transform.SetParent(ColorPanel.transform); colorButtonsController.AddActiveButton(colorPickerButton); }
private void AddButton(OverlayColorData ocd) { //Debug.Log("AvailableColorsHandler.AddButton(): " + ColorName); GameObject go = objectPooler.GetPooledObject(ColorButtonPrefab); ColorPickerButton colorPickerButton = go.GetComponent <ColorPickerButton>(); colorPickerButton.Configure(systemGameManager); colorPickerButton.Setup(Avatar, ColorName, ocd, ocd.color); go.transform.SetParent(ColorPanel.transform); colorButtonsController.AddActiveButton(colorPickerButton); }