void Start() { TextureOption.SetActive(false); brush = Camera.GetComponent <Es.InkPainter.Sample.MousePainter>().brush; adaptionBrush = brush.BrushTexture.name; GetComponent <Image>().sprite = Resources.Load <Sprite>("Alpha/" + adaptionBrush); GetComponent <Button>().onClick.AddListener(OnClickButton); }
// Start is called before the first frame update void Start() { GetComponent <Button>().onClick.AddListener(clickPrefab); brush = cam.GetComponent <Es.InkPainter.Sample.MousePainter>().brush; colorPanel.SetActive(false); randomSW = transform.GetChild(1).GetComponent <Toggle>(); randomSW.isOn = false; }
// Start is called before the first frame update void Start() { GetComponent <Button>().onClick.AddListener(clickPrefab); brush = cam.GetComponent <Es.InkPainter.Sample.MousePainter>().brush; }
void Start() { brush = Camera.GetComponent <Es.InkPainter.Sample.MousePainter>().brush; GetComponent <Button>().onClick.AddListener(OnClickButton); }