using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ColorPickerDispatch : MonoBehaviour { public InputField ColorPickerTexturePNL; public InputField ColorPickerTexturePNL_Grout; public void AddColor(){ if(_G.PON=="TEXTUREPNL" && transform.parent.name=="ColorPickerTexture"){ _G.SC[3]=ColorPickerTexturePNL.text; SliderColor.SetOntarget(); } if(_G.PON=="TEXTUREPNL" && transform.parent.name=="ColorPickerGrouth"){ _G.SC[4]=ColorPickerTexturePNL_Grout.text; SliderColor.SetOntarget(); } } }